{
"provenance": {
"source": "docutils test/test_parsers/test_rst",
"docutils_version": "0.21.2",
"sdist_url": "https://files.pythonhosted.org/packages/source/d/docutils/docutils-0.21.2.tar.gz",
"sdist_sha256": "3a6b18732edf182daa3cd12775bbb338cf5691468f91eeeb109deff6ebfa986f",
"license": "public domain (docutils COPYING.txt); BSD-2-Clause test files excluded by name",
"extracted_by": "scripts/extract-rst-corpus.py",
"expectation_format": "docutils pseudo-XML doctree (document.pformat())",
"counts": {
"cases": 713,
"asserts_error": 219,
"clean": 494,
"files": 59,
"skipped": 71
},
"skipped": [
{
"file": "test_directives/test_block_quotes.py",
"line": 83,
"why": "non-literal totest assignment"
},
{
"file": "test_directives/test_code.py",
"line": 150,
"why": "expected is dynamic (IfExp)"
},
{
"file": "test_directives/test_code_long.py",
"line": 47,
"why": "expected is dynamic (IfExp)"
},
{
"file": "test_directives/test_contents.py",
"line": 172,
"why": "expected is dynamic (BinOp)"
},
{
"file": "test_directives/test_date.py",
"line": 44,
"why": "expected is dynamic (BinOp)"
},
{
"file": "test_directives/test_date.py",
"line": 59,
"why": "expected is dynamic (BinOp)"
},
{
"file": "test_directives/test_images.py",
"line": 242,
"why": "expected is dynamic (BinOp)"
},
{
"file": "test_directives/test_images.py",
"line": 301,
"why": "expected is dynamic (BinOp)"
},
{
"file": "test_directives/test_include.py",
"line": 123,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 147,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 171,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 196,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 214,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 239,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 262,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 311,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 348,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 388,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 428,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 469,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 515,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 537,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 550,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 562,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 576,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 594,
"why": "expected is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 610,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 860,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 893,
"why": "expected is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 909,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 923,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 942,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 960,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 982,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 1019,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 1039,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 1057,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 1076,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 1098,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 1138,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 1196,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 1251,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 1307,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 1363,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 1405,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 1432,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 1465,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 1493,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_include.py",
"line": 1522,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_raw.py",
"line": 67,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_raw.py",
"line": 118,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_raw.py",
"line": 128,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_raw.py",
"line": 141,
"why": "input is dynamic (JoinedStr)"
},
{
"file": "test_directives/test_tables.py",
"line": 942,
"why": "expected is dynamic (BinOp)"
},
{
"file": "test_directives/test_tables.py",
"line": 1072,
"why": "expected is dynamic (BinOp)"
},
{
"file": "test_directives/test_tables.py",
"line": 1098,
"why": "expected is dynamic (BinOp)"
},
{
"file": "test_directives/test_tables.py",
"line": 1114,
"why": "expected is dynamic (BinOp)"
},
{
"file": "test_directives/test_tables.py",
"line": 1132,
"why": "input is dynamic (BinOp)"
},
{
"file": "test_directives/test_tables.py",
"line": 1141,
"why": "input is dynamic (BinOp)"
},
{
"file": "test_directives/test_tables.py",
"line": 1200,
"why": "input is dynamic (BinOp)"
},
{
"file": "test_directives/test_tables.py",
"line": 1258,
"why": "input is dynamic (BinOp)"
},
{
"file": "test_directives/test_unicode.py",
"line": 167,
"why": "expected is dynamic (BinOp)"
},
{
"file": "test_east_asian_text.py",
"line": 168,
"why": "expected is dynamic (Call)"
},
{
"file": "test_root_prefix.py",
"line": 84,
"why": "expected is dynamic (JoinedStr)"
},
{
"file": "test_root_prefix.py",
"line": 93,
"why": "expected is dynamic (JoinedStr)"
},
{
"file": "test_root_prefix.py",
"line": 118,
"why": "expected is dynamic (JoinedStr)"
},
{
"file": "test_source_line.py",
"line": 73,
"why": "case is not an [input, expected] pair"
},
{
"file": "test_source_line.py",
"line": 73,
"why": "case is not an [input, expected] pair"
},
{
"file": "test_tables.py",
"line": 588,
"why": "input is dynamic (BinOp)"
},
{
"file": "test_tables.py",
"line": 620,
"why": "input is dynamic (BinOp)"
},
{
"file": "test_tables.py",
"line": 1292,
"why": "input is dynamic (BinOp)"
}
]
},
"cases": [
{
"file": "test_block_quotes.py",
"group": "block_quotes",
"index": 0,
"line": 42,
"rst": "Line 1.\nLine 2.\n\n Indented.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Line 1.\n Line 2.\n <block_quote>\n <paragraph>\n Indented.\n",
"asserts_error": false
},
{
"file": "test_block_quotes.py",
"group": "block_quotes",
"index": 1,
"line": 57,
"rst": "Line 1.\nLine 2.\n\n Indented 1.\n\n Indented 2.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Line 1.\n Line 2.\n <block_quote>\n <paragraph>\n Indented 1.\n <block_quote>\n <paragraph>\n Indented 2.\n",
"asserts_error": false
},
{
"file": "test_block_quotes.py",
"group": "block_quotes",
"index": 2,
"line": 77,
"rst": "Line 1.\nLine 2.\n Unexpectedly indented.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Line 1.\n Line 2.\n <system_message level=\"3\" line=\"3\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Unexpected indentation.\n <block_quote>\n <paragraph>\n Unexpectedly indented.\n",
"asserts_error": true
},
{
"file": "test_block_quotes.py",
"group": "block_quotes",
"index": 3,
"line": 94,
"rst": "Line 1.\nLine 2.\n\n Indented.\nno blank line\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Line 1.\n Line 2.\n <block_quote>\n <paragraph>\n Indented.\n <system_message level=\"2\" line=\"5\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Block quote ends without a blank line; unexpected unindent.\n <paragraph>\n no blank line\n",
"asserts_error": true
},
{
"file": "test_block_quotes.py",
"group": "block_quotes",
"index": 4,
"line": 115,
"rst": "Here is a paragraph.\n\n Indent 8 spaces.\n\n Indent 4 spaces.\n\nIs this correct? Should it generate a warning?\nYes, it is correct, no warning necessary.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Here is a paragraph.\n <block_quote>\n <block_quote>\n <paragraph>\n Indent 8 spaces.\n <paragraph>\n Indent 4 spaces.\n <paragraph>\n Is this correct? Should it generate a warning?\n Yes, it is correct, no warning necessary.\n",
"asserts_error": false
},
{
"file": "test_block_quotes.py",
"group": "block_quotes",
"index": 5,
"line": 139,
"rst": "Paragraph.\n\n Block quote.\n\n -- Attribution\n\nParagraph.\n\n Block quote.\n\n --Attribution\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Paragraph.\n <block_quote>\n <paragraph>\n Block quote.\n <attribution>\n Attribution\n <paragraph>\n Paragraph.\n <block_quote>\n <paragraph>\n Block quote.\n <attribution>\n Attribution\n",
"asserts_error": false
},
{
"file": "test_block_quotes.py",
"group": "block_quotes",
"index": 6,
"line": 169,
"rst": "Alternative: true em-dash.\n\n Block quote.\n\n — Attribution\n\nAlternative: three hyphens.\n\n Block quote.\n\n --- Attribution\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Alternative: true em-dash.\n <block_quote>\n <paragraph>\n Block quote.\n <attribution>\n Attribution\n <paragraph>\n Alternative: three hyphens.\n <block_quote>\n <paragraph>\n Block quote.\n <attribution>\n Attribution\n",
"asserts_error": false
},
{
"file": "test_block_quotes.py",
"group": "block_quotes",
"index": 7,
"line": 199,
"rst": "Paragraph.\n\n Block quote.\n\n -- Attribution line one\n and line two\n\nParagraph.\n\n Block quote.\n\n -- Attribution line one\n and line two\n\nParagraph.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Paragraph.\n <block_quote>\n <paragraph>\n Block quote.\n <attribution>\n Attribution line one\n and line two\n <paragraph>\n Paragraph.\n <block_quote>\n <paragraph>\n Block quote.\n <attribution>\n Attribution line one\n and line two\n <paragraph>\n Paragraph.\n",
"asserts_error": false
},
{
"file": "test_block_quotes.py",
"group": "block_quotes",
"index": 8,
"line": 237,
"rst": "Paragraph.\n\n Block quote 1.\n\n -- Attribution 1\n\n Block quote 2.\n\n --Attribution 2\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Paragraph.\n <block_quote>\n <paragraph>\n Block quote 1.\n <attribution>\n Attribution 1\n <block_quote>\n <paragraph>\n Block quote 2.\n <attribution>\n Attribution 2\n",
"asserts_error": false
},
{
"file": "test_block_quotes.py",
"group": "block_quotes",
"index": 9,
"line": 263,
"rst": "Paragraph.\n\n Block quote 1.\n\n -- Attribution 1\n\n Block quote 2.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Paragraph.\n <block_quote>\n <paragraph>\n Block quote 1.\n <attribution>\n Attribution 1\n <block_quote>\n <paragraph>\n Block quote 2.\n",
"asserts_error": false
},
{
"file": "test_block_quotes.py",
"group": "block_quotes",
"index": 10,
"line": 285,
"rst": "Unindented paragraph.\n\n Block quote 1.\n\n -- Attribution 1\n\n Block quote 2.\n\n..\n\n Block quote 3.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Unindented paragraph.\n <block_quote>\n <paragraph>\n Block quote 1.\n <attribution>\n Attribution 1\n <block_quote>\n <paragraph>\n Block quote 2.\n <comment xml:space=\"preserve\">\n <block_quote>\n <paragraph>\n Block quote 3.\n",
"asserts_error": false
},
{
"file": "test_block_quotes.py",
"group": "block_quotes",
"index": 11,
"line": 315,
"rst": "Paragraph.\n\n -- Not an attribution\n\nParagraph.\n\n Block quote.\n\n \\-- Not an attribution\n\nParagraph.\n\n Block quote.\n\n -- Not an attribution line one\n and line two\n and line three\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Paragraph.\n <block_quote>\n <paragraph>\n -- Not an attribution\n <paragraph>\n Paragraph.\n <block_quote>\n <paragraph>\n Block quote.\n <paragraph>\n -- Not an attribution\n <paragraph>\n Paragraph.\n <block_quote>\n <paragraph>\n Block quote.\n <definition_list>\n <definition_list_item>\n <term>\n -- Not an attribution line one\n <definition>\n <definition_list>\n <definition_list_item>\n <term>\n and line two\n <definition>\n <paragraph>\n and line three\n",
"asserts_error": false
},
{
"file": "test_block_quotes.py",
"group": "block_quotes",
"index": 12,
"line": 366,
"rst": "Paragraph.\n\n -- Not a valid attribution\n\n Block quote 1.\n\n --Attribution 1\n\n --Invalid attribution\n\n Block quote 2.\n\n --Attribution 2\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Paragraph.\n <block_quote>\n <paragraph>\n -- Not a valid attribution\n <paragraph>\n Block quote 1.\n <attribution>\n Attribution 1\n <block_quote>\n <paragraph>\n --Invalid attribution\n <paragraph>\n Block quote 2.\n <attribution>\n Attribution 2\n",
"asserts_error": false
},
{
"file": "test_bullet_lists.py",
"group": "bullet_lists",
"index": 0,
"line": 42,
"rst": "- item\n",
"doctree": "<document source=\"test data\">\n <bullet_list bullet=\"-\">\n <list_item>\n <paragraph>\n item\n",
"asserts_error": false
},
{
"file": "test_bullet_lists.py",
"group": "bullet_lists",
"index": 1,
"line": 52,
"rst": "* item 1\n\n* item 2\n",
"doctree": "<document source=\"test data\">\n <bullet_list bullet=\"*\">\n <list_item>\n <paragraph>\n item 1\n <list_item>\n <paragraph>\n item 2\n",
"asserts_error": false
},
{
"file": "test_bullet_lists.py",
"group": "bullet_lists",
"index": 2,
"line": 67,
"rst": "No blank line between:\n\n+ item 1\n+ item 2\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n No blank line between:\n <bullet_list bullet=\"+\">\n <list_item>\n <paragraph>\n item 1\n <list_item>\n <paragraph>\n item 2\n",
"asserts_error": false
},
{
"file": "test_bullet_lists.py",
"group": "bullet_lists",
"index": 3,
"line": 85,
"rst": "- item 1, para 1.\n\n item 1, para 2.\n\n- item 2\n",
"doctree": "<document source=\"test data\">\n <bullet_list bullet=\"-\">\n <list_item>\n <paragraph>\n item 1, para 1.\n <paragraph>\n item 1, para 2.\n <list_item>\n <paragraph>\n item 2\n",
"asserts_error": false
},
{
"file": "test_bullet_lists.py",
"group": "bullet_lists",
"index": 4,
"line": 104,
"rst": "- item 1, line 1\n item 1, line 2\n- item 2\n",
"doctree": "<document source=\"test data\">\n <bullet_list bullet=\"-\">\n <list_item>\n <paragraph>\n item 1, line 1\n item 1, line 2\n <list_item>\n <paragraph>\n item 2\n",
"asserts_error": false
},
{
"file": "test_bullet_lists.py",
"group": "bullet_lists",
"index": 5,
"line": 120,
"rst": "Different bullets:\n\n- item 1\n\n+ item 1\n\n* item 1\n- item 1\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Different bullets:\n <bullet_list bullet=\"-\">\n <list_item>\n <paragraph>\n item 1\n <bullet_list bullet=\"+\">\n <list_item>\n <paragraph>\n item 1\n <bullet_list bullet=\"*\">\n <list_item>\n <paragraph>\n item 1\n <system_message level=\"2\" line=\"8\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Bullet list ends without a blank line; unexpected unindent.\n <bullet_list bullet=\"-\">\n <list_item>\n <paragraph>\n item 1\n",
"asserts_error": true
},
{
"file": "test_bullet_lists.py",
"group": "bullet_lists",
"index": 6,
"line": 154,
"rst": "- item\nno blank line\n",
"doctree": "<document source=\"test data\">\n <bullet_list bullet=\"-\">\n <list_item>\n <paragraph>\n item\n <system_message level=\"2\" line=\"2\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Bullet list ends without a blank line; unexpected unindent.\n <paragraph>\n no blank line\n",
"asserts_error": true
},
{
"file": "test_bullet_lists.py",
"group": "bullet_lists",
"index": 7,
"line": 170,
"rst": "-\n\nempty item above\n",
"doctree": "<document source=\"test data\">\n <bullet_list bullet=\"-\">\n <list_item>\n <paragraph>\n empty item above\n",
"asserts_error": false
},
{
"file": "test_bullet_lists.py",
"group": "bullet_lists",
"index": 8,
"line": 182,
"rst": "-\nempty item above, no blank line\n",
"doctree": "<document source=\"test data\">\n <bullet_list bullet=\"-\">\n <list_item>\n <system_message level=\"2\" line=\"2\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Bullet list ends without a blank line; unexpected unindent.\n <paragraph>\n empty item above, no blank line\n",
"asserts_error": true
},
{
"file": "test_bullet_lists.py",
"group": "bullet_lists",
"index": 9,
"line": 196,
"rst": "Unicode bullets:\n\n• BULLET\n\n‣ TRIANGULAR BULLET\n\n⁃ HYPHEN BULLET\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Unicode bullets:\n <bullet_list bullet=\"•\">\n <list_item>\n <paragraph>\n BULLET\n <bullet_list bullet=\"‣\">\n <list_item>\n <paragraph>\n TRIANGULAR BULLET\n <bullet_list bullet=\"⁃\">\n <list_item>\n <paragraph>\n HYPHEN BULLET\n",
"asserts_error": false
},
{
"file": "test_character_level_inline_markup.py",
"group": "emphasis",
"index": 0,
"line": 45,
"rst": "some punctuation is allowed around inline markup, e.g.\n/*emphasis*/, -*emphasis*-, and :*emphasis*: (delimiters),\n(*emphasis*), [*emphasis*], <*emphasis*>, {*emphasis*} (open/close pairs)\n*emphasis*., *emphasis*,, *emphasis*!, and *emphasis*\\ (closing delimiters),\n\nWith simple-inline-markup also\n)*emphasis*(, ]*emphasis*[, >*emphasis*>, }*emphasis*{ (close/open pairs),\nx*2* or 2*x* (alphanumeric char before),\n\nbut not\n(*), [*], '*' or '\"*\"' (\"quoted\" start-string),\n\\*args or * (escaped; whitespace behind start-string),\nor *the\\* *stars\\* *inside* (escaped; whitespace before end-string).\n\nHowever, '*args' triggers a warning.\n\nAlso *this**.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n some punctuation is allowed around inline markup, e.g.\n /\n <emphasis>\n emphasis\n /, -\n <emphasis>\n emphasis\n -, and :\n <emphasis>\n emphasis\n : (delimiters),\n (\n <emphasis>\n emphasis\n ), [\n <emphasis>\n emphasis\n ], <\n <emphasis>\n emphasis\n >, {\n <emphasis>\n emphasis\n } (open/close pairs)\n <emphasis>\n emphasis\n ., \n <emphasis>\n emphasis\n ,, \n <emphasis>\n emphasis\n !, and \n <emphasis>\n emphasis\n (closing delimiters),\n <paragraph>\n With simple-inline-markup also\n )\n <emphasis>\n emphasis\n (, ]\n <emphasis>\n emphasis\n [, >\n <emphasis>\n emphasis\n >, }\n <emphasis>\n emphasis\n { (close/open pairs),\n x\n <emphasis>\n 2\n or 2\n <emphasis>\n x\n (alphanumeric char before),\n <paragraph>\n but not\n (*), [*], '*' or '\"*\"' (\"quoted\" start-string),\n *args or * (escaped; whitespace behind start-string),\n or \n <emphasis>\n the* *stars* *inside\n (escaped; whitespace before end-string).\n <paragraph>\n However, '\n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n *\n args' triggers a warning.\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"2\" line=\"15\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline emphasis start-string without end-string.\n <paragraph>\n Also \n <emphasis>\n this\n <problematic ids=\"problematic-2\" refid=\"system-message-2\">\n *\n .\n <system_message backrefs=\"problematic-2\" ids=\"system-message-2\" level=\"2\" line=\"17\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline emphasis start-string without end-string.\n",
"asserts_error": true
},
{
"file": "test_character_level_inline_markup.py",
"group": "emphasis",
"index": 1,
"line": 151,
"rst": "\nEmphasized asterisk: *\\**\n\nEmphasized double asterisk: *\\*\\** (requires two escape chars).\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Emphasized asterisk: \n <emphasis>\n *\n <paragraph>\n Emphasized double asterisk: \n <emphasis>\n **\n (requires two escape chars).\n",
"asserts_error": false
},
{
"file": "test_character_level_inline_markup.py",
"group": "strong",
"index": 0,
"line": 171,
"rst": "\n(**strong**) but not (**) or '(** '\n\nHowever, '**kwargs' and x**2 are recognized as strong markup\nand \\**kwargs or ** as emphasized.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n (\n <strong>\n strong\n ) but not (**) or '(** '\n <paragraph>\n However, '\n <strong>\n kwargs' and x\n 2 are recognized as strong markup\n and *\n <emphasis>\n kwargs or *\n as emphasized.\n",
"asserts_error": false
},
{
"file": "test_character_level_inline_markup.py",
"group": "strong",
"index": 1,
"line": 194,
"rst": "Strong asterisk: **\\***\nand\nstrong double asterisk: **\\*\\***\nrequire escaping with simple-inline-markup.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Strong asterisk: \n <strong>\n *\n \n and\n strong double asterisk: \n <strong>\n **\n \n require escaping with simple-inline-markup.\n",
"asserts_error": false
},
{
"file": "test_character_level_inline_markup.py",
"group": "literal",
"index": 0,
"line": 217,
"rst": "With simple-inline-markup, this is ```interpreted text``` in backquotes!\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n With simple-inline-markup, this is \n <literal>\n `interpreted text\n ` in backquotes!\n",
"asserts_error": false
},
{
"file": "test_character_level_inline_markup.py",
"group": "literal",
"index": 1,
"line": 228,
"rst": "``literal without closing backquotes\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n ``\n literal without closing backquotes\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline literal start-string without end-string.\n",
"asserts_error": true
},
{
"file": "test_character_level_inline_markup.py",
"group": "literal",
"index": 2,
"line": 241,
"rst": "\nPython ``list``s use square bracket syntax.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Python \n <literal>\n list\n s use square bracket syntax.\n",
"asserts_error": false
},
{
"file": "test_character_level_inline_markup.py",
"group": "references",
"index": 0,
"line": 255,
"rst": "ref_, r_, r_e-f_, -ref_, and anonymousref__,\nbeware of _ref_ or __attr__ or object.__attr__\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference name=\"ref\" refname=\"ref\">\n ref\n , \n <reference name=\"r\" refname=\"r\">\n r\n , \n <reference name=\"r_e-f\" refname=\"r_e-f\">\n r_e-f\n , -\n <reference name=\"ref\" refname=\"ref\">\n ref\n , and \n <reference anonymous=\"1\" name=\"anonymousref\">\n anonymousref\n ,\n beware of _\n <reference name=\"ref\" refname=\"ref\">\n ref\n or __\n <reference anonymous=\"1\" name=\"attr\">\n attr\n or object.__\n <reference anonymous=\"1\" name=\"attr\">\n attr\n",
"asserts_error": false
},
{
"file": "test_character_level_inline_markup.py",
"group": "embedded_uris",
"index": 0,
"line": 290,
"rst": "\nEscape chars in URIs:\n\n`<reference\\:1>`_\n\n`<anonymous\\\\call>`__\n\n`<anonymous\\_call>`__\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Escape chars in URIs:\n <paragraph>\n <reference name=\"reference:1\" refuri=\"reference:1\">\n reference:1\n <target ids=\"reference-1\" names=\"reference:1\" refuri=\"reference:1\">\n <paragraph>\n <reference name=\"anonymous\\call\" refuri=\"anonymous\\call\">\n anonymous\\call\n <paragraph>\n <reference name=\"anonymous_call\" refuri=\"anonymous_call\">\n anonymous_call\n",
"asserts_error": false
},
{
"file": "test_character_level_inline_markup.py",
"group": "inline_targets",
"index": 0,
"line": 317,
"rst": "This isn't a _target; targets require backquotes.\n\nWith simple-inline-markup, _`this`_ is a a target followed by an\nunderscore.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n This isn't a _target; targets require backquotes.\n <paragraph>\n With simple-inline-markup, \n <target ids=\"this\" names=\"this\">\n this\n _ is a a target followed by an\n underscore.\n",
"asserts_error": false
},
{
"file": "test_character_level_inline_markup.py",
"group": "footnote_reference",
"index": 0,
"line": 337,
"rst": "Adjacent footnote refs are possible with simple-inline-markup:\n[*]_[#label]_ [#]_[2]_ [1]_[*]_\n\n.. [#] test1\n.. [*] test2\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Adjacent footnote refs are possible with simple-inline-markup:\n <footnote_reference auto=\"*\" ids=\"footnote-reference-1\">\n <footnote_reference auto=\"1\" ids=\"footnote-reference-2\" refname=\"label\">\n \n <footnote_reference auto=\"1\" ids=\"footnote-reference-3\">\n <footnote_reference ids=\"footnote-reference-4\" refname=\"2\">\n 2\n \n <footnote_reference ids=\"footnote-reference-5\" refname=\"1\">\n 1\n <footnote_reference auto=\"*\" ids=\"footnote-reference-6\">\n <footnote auto=\"1\" ids=\"footnote-1\">\n <paragraph>\n test1\n <footnote auto=\"*\" ids=\"footnote-2\">\n <paragraph>\n test2\n",
"asserts_error": false
},
{
"file": "test_character_level_inline_markup.py",
"group": "citation_reference",
"index": 0,
"line": 368,
"rst": "Adjacent citation refs are possible with simple-inline-markup:\n[citation]_[CIT1]_\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Adjacent citation refs are possible with simple-inline-markup:\n <citation_reference ids=\"citation-reference-1\" refname=\"citation\">\n citation\n <citation_reference ids=\"citation-reference-2\" refname=\"cit1\">\n CIT1\n",
"asserts_error": false
},
{
"file": "test_character_level_inline_markup.py",
"group": "substitution_references",
"index": 0,
"line": 384,
"rst": "|sub|ref\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <substitution_reference refname=\"sub\">\n sub\n ref\n",
"asserts_error": false
},
{
"file": "test_character_level_inline_markup.py",
"group": "standalone_hyperlink",
"index": 0,
"line": 397,
"rst": "\nValid URLs with escaped markup characters:\n\nhttp://example.com/\\*content\\*/whatever\n\nInvalid with the simple-inline-markup setting:\n\nhttp://example.com/\\*content*/whatever\nhttp://example.com/rST_for_all.html\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Valid URLs with escaped markup characters:\n <paragraph>\n <reference refuri=\"http://example.com/*content*/whatever\">\n http://example.com/*content*/whatever\n <paragraph>\n Invalid with the simple-inline-markup setting:\n <paragraph>\n <reference refuri=\"http://example.com/*content\">\n http://example.com/*content\n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n *\n /whatever\n <reference refuri=\"http://example.com/\">\n http://example.com/\n <reference name=\"rST_for\" refname=\"rst_for\">\n rST_for\n all.html\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"2\" line=\"8\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline emphasis start-string without end-string.\n",
"asserts_error": true
},
{
"file": "test_character_level_inline_markup.py",
"group": "markup_recognition_rules",
"index": 0,
"line": 434,
"rst": "__This__ is an anonymous reference with simple-inline-markup.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n __\n <reference anonymous=\"1\" name=\"This\">\n This\n is an anonymous reference with simple-inline-markup.\n",
"asserts_error": false
},
{
"file": "test_character_level_inline_markup.py",
"group": "markup_recognition_rules",
"index": 1,
"line": 445,
"rst": "\nCharacter-level m*a***r**``k``\\ `u`:title:\\p\nwith backslash-escaped whitespace, including new\\\nlines.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Character-level m\n <emphasis>\n a\n <strong>\n r\n <literal>\n k\n <title_reference>\n u\n p\n with backslash-escaped whitespace, including newlines.\n",
"asserts_error": false
},
{
"file": "test_character_level_inline_markup.py",
"group": "markup_recognition_rules",
"index": 2,
"line": 465,
"rst": "text-*separated*‐*by*‑*various*‒*dashes*–*and*—*hyphens*.\n¿*punctuation*? ¡*examples*! *no-break-space* .\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n text-\n <emphasis>\n separated\n ‐\n <emphasis>\n by\n ‑\n <emphasis>\n various\n ‒\n <emphasis>\n dashes\n –\n <emphasis>\n and\n —\n <emphasis>\n hyphens\n .\n ¿\n <emphasis>\n punctuation\n ? ¡\n <emphasis>\n examples\n ! \n <emphasis>\n no-break-space\n .\n",
"asserts_error": false
},
{
"file": "test_character_level_inline_markup.py",
"group": "markup_recognition_rules",
"index": 3,
"line": 503,
"rst": "inline markup surrounded by various whitespace characters:\n*newline*\nor *space* or one of\n *NO-BREAK SPACE* ,\n *OGHAM SPACE MARK* ,\n*MONGOLIAN VOWEL SEPARATOR*,\n *EN QUAD* ,\n *EM QUAD* ,\n *EN SPACE* ,\n *EM SPACE* ,\n *THREE-PER-EM SPACE* ,\n *FOUR-PER-EM SPACE* ,\n *SIX-PER-EM SPACE* ,\n *FIGURE SPACE* ,\n *PUNCTUATION SPACE* ,\n *THIN SPACE* ,\n *HAIR SPACE* ,\n *NARROW NO-BREAK SPACE* ,\n *MEDIUM MATHEMATICAL SPACE* ,\n *IDEOGRAPHIC SPACE* ,\n
*LINE SEPARATOR*
\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n inline markup surrounded by various whitespace characters:\n <emphasis>\n newline\n \n or \n <emphasis>\n space\n or one of\n \n <emphasis>\n NO-BREAK SPACE\n ,\n \n <emphasis>\n OGHAM SPACE MARK\n ,\n \n <emphasis>\n MONGOLIAN VOWEL SEPARATOR\n ,\n \n <emphasis>\n EN QUAD\n ,\n \n <emphasis>\n EM QUAD\n ,\n \n <emphasis>\n EN SPACE\n ,\n \n <emphasis>\n EM SPACE\n ,\n \n <emphasis>\n THREE-PER-EM SPACE\n ,\n \n <emphasis>\n FOUR-PER-EM SPACE\n ,\n \n <emphasis>\n SIX-PER-EM SPACE\n ,\n \n <emphasis>\n FIGURE SPACE\n ,\n \n <emphasis>\n PUNCTUATION SPACE\n ,\n \n <emphasis>\n THIN SPACE\n ,\n \n <emphasis>\n HAIR SPACE\n ,\n \n <emphasis>\n NARROW NO-BREAK SPACE\n ,\n \n <emphasis>\n MEDIUM MATHEMATICAL SPACE\n ,\n \n <emphasis>\n IDEOGRAPHIC SPACE\n ,\n <paragraph>\n <emphasis>\n LINE SEPARATOR\n",
"asserts_error": false
},
{
"file": "test_character_level_inline_markup.py",
"group": "markup_recognition_rules",
"index": 4,
"line": 609,
"rst": "no inline markup due to whitespace inside and behind: *\nnewline\n*\n* space * or one of\n* NO-BREAK SPACE *\n* OGHAM SPACE MARK *\n* EN QUAD *\n* EM QUAD *\n* EN SPACE *\n* EM SPACE *\n* THREE-PER-EM SPACE *\n* FOUR-PER-EM SPACE *\n* SIX-PER-EM SPACE *\n* FIGURE SPACE *\n* PUNCTUATION SPACE *\n* THIN SPACE *\n* HAIR SPACE *\n* NARROW NO-BREAK SPACE *\n* MEDIUM MATHEMATICAL SPACE *\n* IDEOGRAPHIC SPACE *\n*
LINE SEPARATOR
*\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n no inline markup due to whitespace inside and behind: *\n newline\n *\n * space * or one of\n * NO-BREAK SPACE *\n * OGHAM SPACE MARK *\n * EN QUAD *\n * EM QUAD *\n * EN SPACE *\n * EM SPACE *\n * THREE-PER-EM SPACE *\n * FOUR-PER-EM SPACE *\n * SIX-PER-EM SPACE *\n * FIGURE SPACE *\n * PUNCTUATION SPACE *\n * THIN SPACE *\n * HAIR SPACE *\n * NARROW NO-BREAK SPACE *\n * MEDIUM MATHEMATICAL SPACE *\n * IDEOGRAPHIC SPACE *\n *\n LINE SEPARATOR\n *\n",
"asserts_error": false
},
{
"file": "test_character_level_inline_markup.py",
"group": "markup_recognition_rules",
"index": 5,
"line": 660,
"rst": "\"Quoted\" markup start-string (matched openers & closers) -> no markup:\n\n'*' \"*\" (*) <*> [*] {*}\n⁅*⁆\n\nSome international quoting styles:\n‘*’ “*” English, ...,\n„*“ ‚*‘ »*« ›*‹ German, Czech, ...,\n„*” «*» Romanian,\n“*„ ‘*‚ Greek,\n「*」 『*』traditional Chinese,\n”*” ’*’ »*» ›*› Swedish, Finnish,\n„*” ‚*’ Polish,\n„*” »*« ’*’ Hungarian,\n\nBut this is „*’ emphasized »*‹.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n \"Quoted\" markup start-string (matched openers & closers) -> no markup:\n <paragraph>\n '*' \"*\" (*) <*> [*] {*}\n ⁅*⁆\n <paragraph>\n Some international quoting styles:\n ‘*’ “*” English, ...,\n „*“ ‚*‘ »*« ›*‹ German, Czech, ...,\n „*” «*» Romanian,\n “*„ ‘*‚ Greek,\n 「*」 『*』traditional Chinese,\n ”*” ’*’ »*» ›*› Swedish, Finnish,\n „*” ‚*’ Polish,\n „*” »*« ’*’ Hungarian,\n <paragraph>\n But this is „\n <emphasis>\n ’ emphasized »\n ‹.\n",
"asserts_error": false
},
{
"file": "test_citations.py",
"group": "citations",
"index": 0,
"line": 42,
"rst": ".. [citation] This is a citation.\n",
"doctree": "<document source=\"test data\">\n <citation ids=\"citation\" names=\"citation\">\n <label>\n citation\n <paragraph>\n This is a citation.\n",
"asserts_error": false
},
{
"file": "test_citations.py",
"group": "citations",
"index": 1,
"line": 53,
"rst": ".. [citation1234] This is a citation with year.\n",
"doctree": "<document source=\"test data\">\n <citation ids=\"citation1234\" names=\"citation1234\">\n <label>\n citation1234\n <paragraph>\n This is a citation with year.\n",
"asserts_error": false
},
{
"file": "test_citations.py",
"group": "citations",
"index": 2,
"line": 64,
"rst": ".. [citation] This is a citation\n on multiple lines.\n",
"doctree": "<document source=\"test data\">\n <citation ids=\"citation\" names=\"citation\">\n <label>\n citation\n <paragraph>\n This is a citation\n on multiple lines.\n",
"asserts_error": false
},
{
"file": "test_citations.py",
"group": "citations",
"index": 3,
"line": 77,
"rst": ".. [citation1] This is a citation\n on multiple lines with more space.\n\n.. [citation2] This is a citation\n on multiple lines with less space.\n",
"doctree": "<document source=\"test data\">\n <citation ids=\"citation1\" names=\"citation1\">\n <label>\n citation1\n <paragraph>\n This is a citation\n on multiple lines with more space.\n <citation ids=\"citation2\" names=\"citation2\">\n <label>\n citation2\n <paragraph>\n This is a citation\n on multiple lines with less space.\n",
"asserts_error": false
},
{
"file": "test_citations.py",
"group": "citations",
"index": 4,
"line": 99,
"rst": ".. [citation]\n This is a citation on multiple lines\n whose block starts on line 2.\n",
"doctree": "<document source=\"test data\">\n <citation ids=\"citation\" names=\"citation\">\n <label>\n citation\n <paragraph>\n This is a citation on multiple lines\n whose block starts on line 2.\n",
"asserts_error": false
},
{
"file": "test_citations.py",
"group": "citations",
"index": 5,
"line": 113,
"rst": ".. [citation]\n\nThat was an empty citation.\n",
"doctree": "<document source=\"test data\">\n <citation ids=\"citation\" names=\"citation\">\n <label>\n citation\n <paragraph>\n That was an empty citation.\n",
"asserts_error": false
},
{
"file": "test_citations.py",
"group": "citations",
"index": 6,
"line": 126,
"rst": ".. [citation]\nNo blank line.\n",
"doctree": "<document source=\"test data\">\n <citation ids=\"citation\" names=\"citation\">\n <label>\n citation\n <system_message level=\"2\" line=\"2\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Explicit markup ends without a blank line; unexpected unindent.\n <paragraph>\n No blank line.\n",
"asserts_error": true
},
{
"file": "test_citations.py",
"group": "citations",
"index": 7,
"line": 141,
"rst": ".. [citation label with spaces] this isn't a citation\n\n.. [*citationlabelwithmarkup*] this isn't a citation\n",
"doctree": "<document source=\"test data\">\n <comment xml:space=\"preserve\">\n [citation label with spaces] this isn't a citation\n <comment xml:space=\"preserve\">\n [*citationlabelwithmarkup*] this isn't a citation\n",
"asserts_error": false
},
{
"file": "test_citations.py",
"group": "citations",
"index": 8,
"line": 153,
"rst": "\nisolated internals : ``.-_``.\n\n.. [citation.withdot] one dot\n\n.. [citation-withdot] one hyphen\n\n.. [citation_withunderscore] one underscore\n\n.. [citation:with:colons] two colons\n\n.. [citation+withplus] one plus\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n isolated internals : \n <literal>\n .-_\n .\n <citation ids=\"citation-withdot\" names=\"citation.withdot\">\n <label>\n citation.withdot\n <paragraph>\n one dot\n <citation ids=\"citation-withdot-1\" names=\"citation-withdot\">\n <label>\n citation-withdot\n <paragraph>\n one hyphen\n <citation ids=\"citation-withunderscore\" names=\"citation_withunderscore\">\n <label>\n citation_withunderscore\n <paragraph>\n one underscore\n <citation ids=\"citation-with-colons\" names=\"citation:with:colons\">\n <label>\n citation:with:colons\n <paragraph>\n two colons\n <citation ids=\"citation-withplus\" names=\"citation+withplus\">\n <label>\n citation+withplus\n <paragraph>\n one plus\n",
"asserts_error": false
},
{
"file": "test_comments.py",
"group": "comments",
"index": 0,
"line": 42,
"rst": ".. A comment\n\nParagraph.\n",
"doctree": "<document source=\"test data\">\n <comment xml:space=\"preserve\">\n A comment\n <paragraph>\n Paragraph.\n",
"asserts_error": false
},
{
"file": "test_comments.py",
"group": "comments",
"index": 1,
"line": 54,
"rst": ".. A comment\n block.\n\nParagraph.\n",
"doctree": "<document source=\"test data\">\n <comment xml:space=\"preserve\">\n A comment\n block.\n <paragraph>\n Paragraph.\n",
"asserts_error": false
},
{
"file": "test_comments.py",
"group": "comments",
"index": 2,
"line": 68,
"rst": "..\n A comment consisting of multiple lines\n starting on the line after the\n explicit markup start.\n",
"doctree": "<document source=\"test data\">\n <comment xml:space=\"preserve\">\n A comment consisting of multiple lines\n starting on the line after the\n explicit markup start.\n",
"asserts_error": false
},
{
"file": "test_comments.py",
"group": "comments",
"index": 3,
"line": 81,
"rst": ".. A comment.\n.. Another.\n\nParagraph.\n",
"doctree": "<document source=\"test data\">\n <comment xml:space=\"preserve\">\n A comment.\n <comment xml:space=\"preserve\">\n Another.\n <paragraph>\n Paragraph.\n",
"asserts_error": false
},
{
"file": "test_comments.py",
"group": "comments",
"index": 4,
"line": 96,
"rst": ".. A comment\nno blank line\n\nParagraph.\n",
"doctree": "<document source=\"test data\">\n <comment xml:space=\"preserve\">\n A comment\n <system_message level=\"2\" line=\"2\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Explicit markup ends without a blank line; unexpected unindent.\n <paragraph>\n no blank line\n <paragraph>\n Paragraph.\n",
"asserts_error": true
},
{
"file": "test_comments.py",
"group": "comments",
"index": 5,
"line": 114,
"rst": ".. A comment.\n.. Another.\nno blank line\n\nParagraph.\n",
"doctree": "<document source=\"test data\">\n <comment xml:space=\"preserve\">\n A comment.\n <comment xml:space=\"preserve\">\n Another.\n <system_message level=\"2\" line=\"3\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Explicit markup ends without a blank line; unexpected unindent.\n <paragraph>\n no blank line\n <paragraph>\n Paragraph.\n",
"asserts_error": true
},
{
"file": "test_comments.py",
"group": "comments",
"index": 6,
"line": 135,
"rst": ".. A comment::\n\nParagraph.\n",
"doctree": "<document source=\"test data\">\n <comment xml:space=\"preserve\">\n A comment::\n <paragraph>\n Paragraph.\n",
"asserts_error": false
},
{
"file": "test_comments.py",
"group": "comments",
"index": 7,
"line": 147,
"rst": "..\n comment::\n\nThe extra newline before the comment text prevents\nthe parser from recognizing a directive.\n",
"doctree": "<document source=\"test data\">\n <comment xml:space=\"preserve\">\n comment::\n <paragraph>\n The extra newline before the comment text prevents\n the parser from recognizing a directive.\n",
"asserts_error": false
},
{
"file": "test_comments.py",
"group": "comments",
"index": 8,
"line": 162,
"rst": "..\n _comment: http://example.org\n\nThe extra newline before the comment text prevents\nthe parser from recognizing a hyperlink target.\n",
"doctree": "<document source=\"test data\">\n <comment xml:space=\"preserve\">\n _comment: http://example.org\n <paragraph>\n The extra newline before the comment text prevents\n the parser from recognizing a hyperlink target.\n",
"asserts_error": false
},
{
"file": "test_comments.py",
"group": "comments",
"index": 9,
"line": 177,
"rst": "..\n [comment] Not a citation.\n\nThe extra newline before the comment text prevents\nthe parser from recognizing a citation.\n",
"doctree": "<document source=\"test data\">\n <comment xml:space=\"preserve\">\n [comment] Not a citation.\n <paragraph>\n The extra newline before the comment text prevents\n the parser from recognizing a citation.\n",
"asserts_error": false
},
{
"file": "test_comments.py",
"group": "comments",
"index": 10,
"line": 192,
"rst": "..\n |comment| image:: bogus.png\n\nThe extra newline before the comment text prevents\nthe parser from recognizing a substitution definition.\n",
"doctree": "<document source=\"test data\">\n <comment xml:space=\"preserve\">\n |comment| image:: bogus.png\n <paragraph>\n The extra newline before the comment text prevents\n the parser from recognizing a substitution definition.\n",
"asserts_error": false
},
{
"file": "test_comments.py",
"group": "comments",
"index": 11,
"line": 207,
"rst": ".. Next is an empty comment, which serves to end this comment and\n prevents the following block quote being swallowed up.\n\n..\n\n A block quote.\n",
"doctree": "<document source=\"test data\">\n <comment xml:space=\"preserve\">\n Next is an empty comment, which serves to end this comment and\n prevents the following block quote being swallowed up.\n <comment xml:space=\"preserve\">\n <block_quote>\n <paragraph>\n A block quote.\n",
"asserts_error": false
},
{
"file": "test_comments.py",
"group": "comments",
"index": 12,
"line": 225,
"rst": "term 1\n definition 1\n\n .. a comment\n\nterm 2\n definition 2\n",
"doctree": "<document source=\"test data\">\n <definition_list>\n <definition_list_item>\n <term>\n term 1\n <definition>\n <paragraph>\n definition 1\n <comment xml:space=\"preserve\">\n a comment\n <definition_list_item>\n <term>\n term 2\n <definition>\n <paragraph>\n definition 2\n",
"asserts_error": false
},
{
"file": "test_comments.py",
"group": "comments",
"index": 13,
"line": 252,
"rst": "term 1\n definition 1\n\n.. a comment\n\nterm 2\n definition 2\n",
"doctree": "<document source=\"test data\">\n <definition_list>\n <definition_list_item>\n <term>\n term 1\n <definition>\n <paragraph>\n definition 1\n <comment xml:space=\"preserve\">\n a comment\n <definition_list>\n <definition_list_item>\n <term>\n term 2\n <definition>\n <paragraph>\n definition 2\n",
"asserts_error": false
},
{
"file": "test_comments.py",
"group": "comments",
"index": 14,
"line": 280,
"rst": "+ bullet paragraph 1\n\n bullet paragraph 2\n\n .. comment between bullet paragraphs 2 and 3\n\n bullet paragraph 3\n",
"doctree": "<document source=\"test data\">\n <bullet_list bullet=\"+\">\n <list_item>\n <paragraph>\n bullet paragraph 1\n <paragraph>\n bullet paragraph 2\n <comment xml:space=\"preserve\">\n comment between bullet paragraphs 2 and 3\n <paragraph>\n bullet paragraph 3\n",
"asserts_error": false
},
{
"file": "test_comments.py",
"group": "comments",
"index": 15,
"line": 302,
"rst": "+ bullet paragraph 1\n\n .. comment between bullet paragraphs 1 (leader) and 2\n\n bullet paragraph 2\n",
"doctree": "<document source=\"test data\">\n <bullet_list bullet=\"+\">\n <list_item>\n <paragraph>\n bullet paragraph 1\n <comment xml:space=\"preserve\">\n comment between bullet paragraphs 1 (leader) and 2\n <paragraph>\n bullet paragraph 2\n",
"asserts_error": false
},
{
"file": "test_comments.py",
"group": "comments",
"index": 16,
"line": 320,
"rst": "+ bullet\n\n .. trailing comment\n",
"doctree": "<document source=\"test data\">\n <bullet_list bullet=\"+\">\n <list_item>\n <paragraph>\n bullet\n <comment xml:space=\"preserve\">\n trailing comment\n",
"asserts_error": false
},
{
"file": "test_definition_lists.py",
"group": "definition_lists",
"index": 0,
"line": 45,
"rst": "term\n definition\n",
"doctree": "<document source=\"test data\">\n <definition_list>\n <definition_list_item>\n <term>\n term\n <definition>\n <paragraph>\n definition\n",
"asserts_error": false
},
{
"file": "test_definition_lists.py",
"group": "definition_lists",
"index": 1,
"line": 59,
"rst": "term\n definition\n\nparagraph\n",
"doctree": "<document source=\"test data\">\n <definition_list>\n <definition_list_item>\n <term>\n term\n <definition>\n <paragraph>\n definition\n <paragraph>\n paragraph\n",
"asserts_error": false
},
{
"file": "test_definition_lists.py",
"group": "definition_lists",
"index": 2,
"line": 77,
"rst": "term\n definition\nno blank line\n",
"doctree": "<document source=\"test data\">\n <definition_list>\n <definition_list_item>\n <term>\n term\n <definition>\n <paragraph>\n definition\n <system_message level=\"2\" line=\"3\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Definition list ends without a blank line; unexpected unindent.\n <paragraph>\n no blank line\n",
"asserts_error": true
},
{
"file": "test_definition_lists.py",
"group": "definition_lists",
"index": 3,
"line": 97,
"rst": "A paragraph::\n A literal block without a blank line first?\n",
"doctree": "<document source=\"test data\">\n <definition_list>\n <definition_list_item>\n <term>\n A paragraph::\n <definition>\n <system_message level=\"1\" line=\"2\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Blank line missing before literal block (after the \"::\")? Interpreted as a definition list item.\n <paragraph>\n A literal block without a blank line first?\n",
"asserts_error": true
},
{
"file": "test_definition_lists.py",
"group": "definition_lists",
"index": 4,
"line": 114,
"rst": "this is not a term;\na term may only be one line long\n this is not a definition\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n this is not a term;\n a term may only be one line long\n <system_message level=\"3\" line=\"3\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Unexpected indentation.\n <block_quote>\n <paragraph>\n this is not a definition\n",
"asserts_error": true
},
{
"file": "test_definition_lists.py",
"group": "definition_lists",
"index": 5,
"line": 131,
"rst": "term 1\n definition 1\n\nterm 2\n definition 2\n",
"doctree": "<document source=\"test data\">\n <definition_list>\n <definition_list_item>\n <term>\n term 1\n <definition>\n <paragraph>\n definition 1\n <definition_list_item>\n <term>\n term 2\n <definition>\n <paragraph>\n definition 2\n",
"asserts_error": false
},
{
"file": "test_definition_lists.py",
"group": "definition_lists",
"index": 6,
"line": 154,
"rst": "term 1\n definition 1 (no blank line below)\nterm 2\n definition 2\n",
"doctree": "<document source=\"test data\">\n <definition_list>\n <definition_list_item>\n <term>\n term 1\n <definition>\n <paragraph>\n definition 1 (no blank line below)\n <definition_list_item>\n <term>\n term 2\n <definition>\n <paragraph>\n definition 2\n",
"asserts_error": false
},
{
"file": "test_definition_lists.py",
"group": "definition_lists",
"index": 7,
"line": 176,
"rst": "term 1\n definition 1 (no blank line below)\nterm 2\n definition 2\nNo blank line after the definition list.\n",
"doctree": "<document source=\"test data\">\n <definition_list>\n <definition_list_item>\n <term>\n term 1\n <definition>\n <paragraph>\n definition 1 (no blank line below)\n <definition_list_item>\n <term>\n term 2\n <definition>\n <paragraph>\n definition 2\n <system_message level=\"2\" line=\"5\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Definition list ends without a blank line; unexpected unindent.\n <paragraph>\n No blank line after the definition list.\n",
"asserts_error": true
},
{
"file": "test_definition_lists.py",
"group": "definition_lists",
"index": 8,
"line": 204,
"rst": "term 1\n definition 1\n\n term 1a\n definition 1a\n\n term 1b\n definition 1b\n\nterm 2\n definition 2\n\nparagraph\n",
"doctree": "<document source=\"test data\">\n <definition_list>\n <definition_list_item>\n <term>\n term 1\n <definition>\n <paragraph>\n definition 1\n <definition_list>\n <definition_list_item>\n <term>\n term 1a\n <definition>\n <paragraph>\n definition 1a\n <definition_list_item>\n <term>\n term 1b\n <definition>\n <paragraph>\n definition 1b\n <definition_list_item>\n <term>\n term 2\n <definition>\n <paragraph>\n definition 2\n <paragraph>\n paragraph\n",
"asserts_error": false
},
{
"file": "test_definition_lists.py",
"group": "definition_lists",
"index": 9,
"line": 250,
"rst": "Term : classifier\n The ' : ' indicates a classifier in\n definition list item terms only.\n",
"doctree": "<document source=\"test data\">\n <definition_list>\n <definition_list_item>\n <term>\n Term\n <classifier>\n classifier\n <definition>\n <paragraph>\n The ' : ' indicates a classifier in\n definition list item terms only.\n",
"asserts_error": false
},
{
"file": "test_definition_lists.py",
"group": "definition_lists",
"index": 10,
"line": 268,
"rst": "Term: not a classifier\n Because there's no space before the colon.\nTerm :not a classifier\n Because there's no space after the colon.\nTerm \\: not a classifier\n Because the colon is escaped.\n",
"doctree": "<document source=\"test data\">\n <definition_list>\n <definition_list_item>\n <term>\n Term: not a classifier\n <definition>\n <paragraph>\n Because there's no space before the colon.\n <definition_list_item>\n <term>\n Term :not a classifier\n <definition>\n <paragraph>\n Because there's no space after the colon.\n <definition_list_item>\n <term>\n Term : not a classifier\n <definition>\n <paragraph>\n Because the colon is escaped.\n",
"asserts_error": false
},
{
"file": "test_definition_lists.py",
"group": "definition_lists",
"index": 11,
"line": 298,
"rst": "``Term : not a classifier``\n Because the ' : ' is inside an inline literal.\n",
"doctree": "<document source=\"test data\">\n <definition_list>\n <definition_list_item>\n <term>\n <literal>\n Term : not a classifier\n <definition>\n <paragraph>\n Because the ' : ' is inside an inline literal.\n",
"asserts_error": false
},
{
"file": "test_definition_lists.py",
"group": "definition_lists",
"index": 12,
"line": 313,
"rst": "Term `with *inline ``text **errors : classifier `with *errors ``too\n Definition `with *inline ``text **markup errors.\n",
"doctree": "<document source=\"test data\">\n <definition_list>\n <definition_list_item>\n <term>\n Term \n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n `\n with \n <problematic ids=\"problematic-2\" refid=\"system-message-2\">\n *\n inline \n <problematic ids=\"problematic-3\" refid=\"system-message-3\">\n ``\n text \n <problematic ids=\"problematic-4\" refid=\"system-message-4\">\n **\n errors\n <classifier>\n classifier \n <problematic ids=\"problematic-5\" refid=\"system-message-5\">\n `\n with \n <problematic ids=\"problematic-6\" refid=\"system-message-6\">\n *\n errors \n <problematic ids=\"problematic-7\" refid=\"system-message-7\">\n ``\n too\n <definition>\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline interpreted text or phrase reference start-string without end-string.\n <system_message backrefs=\"problematic-2\" ids=\"system-message-2\" level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline emphasis start-string without end-string.\n <system_message backrefs=\"problematic-3\" ids=\"system-message-3\" level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline literal start-string without end-string.\n <system_message backrefs=\"problematic-4\" ids=\"system-message-4\" level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline strong start-string without end-string.\n <system_message backrefs=\"problematic-5\" ids=\"system-message-5\" level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline interpreted text or phrase reference start-string without end-string.\n <system_message backrefs=\"problematic-6\" ids=\"system-message-6\" level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline emphasis start-string without end-string.\n <system_message backrefs=\"problematic-7\" ids=\"system-message-7\" level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline literal start-string without end-string.\n <paragraph>\n Definition \n <problematic ids=\"problematic-8\" refid=\"system-message-8\">\n `\n with \n <problematic ids=\"problematic-9\" refid=\"system-message-9\">\n *\n inline \n <problematic ids=\"problematic-10\" refid=\"system-message-10\">\n ``\n text \n <problematic ids=\"problematic-11\" refid=\"system-message-11\">\n **\n markup errors.\n <system_message backrefs=\"problematic-8\" ids=\"system-message-8\" level=\"2\" line=\"2\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline interpreted text or phrase reference start-string without end-string.\n <system_message backrefs=\"problematic-9\" ids=\"system-message-9\" level=\"2\" line=\"2\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline emphasis start-string without end-string.\n <system_message backrefs=\"problematic-10\" ids=\"system-message-10\" level=\"2\" line=\"2\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline literal start-string without end-string.\n <system_message backrefs=\"problematic-11\" ids=\"system-message-11\" level=\"2\" line=\"2\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline strong start-string without end-string.\n",
"asserts_error": true
},
{
"file": "test_definition_lists.py",
"group": "definition_lists",
"index": 13,
"line": 395,
"rst": "Term : `reference`_\n classifier starting with a reference crashes from release 8197 to ...\n",
"doctree": "<document source=\"test data\">\n <definition_list>\n <definition_list_item>\n <term>\n Term\n <classifier>\n <reference name=\"reference\" refname=\"reference\">\n reference\n <definition>\n <paragraph>\n classifier starting with a reference crashes from release 8197 to ...\n",
"asserts_error": false
},
{
"file": "test_definition_lists.py",
"group": "definition_lists",
"index": 14,
"line": 412,
"rst": "Term : a `reference`_ in text : second\n classifier with reference crashes from release 8197 to ...\n",
"doctree": "<document source=\"test data\">\n <definition_list>\n <definition_list_item>\n <term>\n Term\n <classifier>\n a \n <reference name=\"reference\" refname=\"reference\">\n reference\n in text\n <classifier>\n second\n <definition>\n <paragraph>\n classifier with reference crashes from release 8197 to ...\n",
"asserts_error": false
},
{
"file": "test_definition_lists.py",
"group": "definition_lists",
"index": 15,
"line": 433,
"rst": "Term : classifier one : classifier two\n Definition\n",
"doctree": "<document source=\"test data\">\n <definition_list>\n <definition_list_item>\n <term>\n Term\n <classifier>\n classifier one\n <classifier>\n classifier two\n <definition>\n <paragraph>\n Definition\n",
"asserts_error": false
},
{
"file": "test_directives/test_admonitions.py",
"group": "admonitions",
"index": 0,
"line": 42,
"rst": ".. Attention:: Directives at large.\n\n.. Note:: :name: mynote\n :class: testnote\n\n Admonitions support the generic \"name\" and \"class\" options.\n\n.. Tip:: 15% if the\n service is good.\n\n.. Hint:: It's bigger than a bread box.\n\n- .. WARNING:: Strong prose may provoke extreme mental exertion.\n Reader discretion is strongly advised.\n- .. Error:: Does not compute.\n\n.. Caution::\n\n Don't take any wooden nickels.\n\n.. DANGER:: Mad scientist at work!\n\n.. Important::\n - Wash behind your ears.\n - Clean up your room.\n - Call your mother.\n - Back up your data.\n",
"doctree": "<document source=\"test data\">\n <attention>\n <paragraph>\n Directives at large.\n <note classes=\"testnote\" ids=\"mynote\" names=\"mynote\">\n <paragraph>\n Admonitions support the generic \"name\" and \"class\" options.\n <tip>\n <paragraph>\n 15% if the\n service is good.\n <hint>\n <paragraph>\n It's bigger than a bread box.\n <bullet_list bullet=\"-\">\n <list_item>\n <warning>\n <paragraph>\n Strong prose may provoke extreme mental exertion.\n Reader discretion is strongly advised.\n <list_item>\n <error>\n <paragraph>\n Does not compute.\n <caution>\n <paragraph>\n Don't take any wooden nickels.\n <danger>\n <paragraph>\n Mad scientist at work!\n <important>\n <bullet_list bullet=\"-\">\n <list_item>\n <paragraph>\n Wash behind your ears.\n <list_item>\n <paragraph>\n Clean up your room.\n <list_item>\n <paragraph>\n Call your mother.\n <list_item>\n <paragraph>\n Back up your data.\n",
"asserts_error": false
},
{
"file": "test_directives/test_admonitions.py",
"group": "admonitions",
"index": 1,
"line": 117,
"rst": ".. note:: One-line notes.\n.. note:: One after the other.\n.. note:: No blank lines in-between.\n",
"doctree": "<document source=\"test data\">\n <note>\n <paragraph>\n One-line notes.\n <note>\n <paragraph>\n One after the other.\n <note>\n <paragraph>\n No blank lines in-between.\n",
"asserts_error": false
},
{
"file": "test_directives/test_admonitions.py",
"group": "admonitions",
"index": 2,
"line": 134,
"rst": ".. note:: Content before options\n is possible too.\n :class: mynote\n\n.. note:: :strong:`a role is not an option`.\n :name: role not option\n\n.. note:: a role is\n :strong:`not an option`, even if its starts a line.\n",
"doctree": "<document source=\"test data\">\n <note classes=\"mynote\">\n <paragraph>\n Content before options\n is possible too.\n <note ids=\"role-not-option\" names=\"role\\ not\\ option\">\n <paragraph>\n <strong>\n a role is not an option\n .\n <note>\n <paragraph>\n a role is\n <strong>\n not an option\n , even if its starts a line.\n",
"asserts_error": false
},
{
"file": "test_directives/test_admonitions.py",
"group": "admonitions",
"index": 3,
"line": 163,
"rst": ".. note::\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Content block expected for the \"note\" directive; none found.\n <literal_block xml:space=\"preserve\">\n .. note::\n",
"asserts_error": true
},
{
"file": "test_directives/test_admonitions.py",
"group": "admonitions",
"index": 4,
"line": 174,
"rst": ".. admonition:: Admonition\n\n This is a generic admonition.\n",
"doctree": "<document source=\"test data\">\n <admonition classes=\"admonition-admonition\">\n <title>\n Admonition\n <paragraph>\n This is a generic admonition.\n",
"asserts_error": false
},
{
"file": "test_directives/test_admonitions.py",
"group": "admonitions",
"index": 5,
"line": 187,
"rst": ".. admonition:: And, by the way...\n\n You can make up your own admonition too.\n",
"doctree": "<document source=\"test data\">\n <admonition classes=\"admonition-and-by-the-way\">\n <title>\n And, by the way...\n <paragraph>\n You can make up your own admonition too.\n",
"asserts_error": false
},
{
"file": "test_directives/test_admonitions.py",
"group": "admonitions",
"index": 6,
"line": 200,
"rst": ".. admonition:: Admonition\n :class: emergency\n :name: reference name\n\n Test the \"class\" override.\n",
"doctree": "<document source=\"test data\">\n <admonition classes=\"emergency\" ids=\"reference-name\" names=\"reference\\ name\">\n <title>\n Admonition\n <paragraph>\n Test the \"class\" override.\n",
"asserts_error": false
},
{
"file": "test_directives/test_admonitions.py",
"group": "admonitions",
"index": 7,
"line": 215,
"rst": ".. admonition::\n\n Generic admonitions require a title.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"admonition\" directive:\n 1 argument(s) required, 0 supplied.\n <literal_block xml:space=\"preserve\">\n .. admonition::\n \n Generic admonitions require a title.\n",
"asserts_error": true
},
{
"file": "test_directives/test_admonitions_de.py",
"group": "admonitions",
"index": 0,
"line": 51,
"rst": ".. Achtung:: Directives at large.\n\n.. Notiz:: :name: mynote\n :class: testnote\n\n Admonitions support the generic \"name\" and \"class\" options.\n\n.. Tipp:: 15% if the\n service is good.\n\n.. Hinweis:: It's bigger than a bread box.\n\n- .. WARNUNG:: Strong prose may provoke extreme mental exertion.\n Reader discretion is strongly advised.\n- .. Fehler:: Does not compute.\n\n.. Vorsicht::\n\n Don't take any wooden nickels.\n\n.. GEFAHR:: Mad scientist at work!\n\n.. Wichtig::\n - Wash behind your ears.\n - Clean up your room.\n - Call your mother.\n - Back up your data.\n",
"doctree": "<document source=\"test data\">\n <attention>\n <paragraph>\n Directives at large.\n <note classes=\"testnote\" ids=\"mynote\" names=\"mynote\">\n <paragraph>\n Admonitions support the generic \"name\" and \"class\" options.\n <tip>\n <paragraph>\n 15% if the\n service is good.\n <hint>\n <paragraph>\n It's bigger than a bread box.\n <bullet_list bullet=\"-\">\n <list_item>\n <warning>\n <paragraph>\n Strong prose may provoke extreme mental exertion.\n Reader discretion is strongly advised.\n <list_item>\n <error>\n <paragraph>\n Does not compute.\n <caution>\n <paragraph>\n Don't take any wooden nickels.\n <danger>\n <paragraph>\n Mad scientist at work!\n <important>\n <bullet_list bullet=\"-\">\n <list_item>\n <paragraph>\n Wash behind your ears.\n <list_item>\n <paragraph>\n Clean up your room.\n <list_item>\n <paragraph>\n Call your mother.\n <list_item>\n <paragraph>\n Back up your data.\n",
"asserts_error": false
},
{
"file": "test_directives/test_admonitions_de.py",
"group": "admonitions",
"index": 1,
"line": 126,
"rst": ".. Notiz:: One-line notes.\n.. Notiz:: One after the other.\n.. Notiz:: No blank lines in-between.\n",
"doctree": "<document source=\"test data\">\n <note>\n <paragraph>\n One-line notes.\n <note>\n <paragraph>\n One after the other.\n <note>\n <paragraph>\n No blank lines in-between.\n",
"asserts_error": false
},
{
"file": "test_directives/test_admonitions_de.py",
"group": "admonitions",
"index": 2,
"line": 143,
"rst": ".. Notiz:: Content before options\n is possible too.\n :class: mynote\n\n.. Notiz:: :strong:`a role is not an option`.\n :name: role not option\n\n.. Notiz:: a role is\n :strong:`not an option`, even if its starts a line.\n",
"doctree": "<document source=\"test data\">\n <note classes=\"mynote\">\n <paragraph>\n Content before options\n is possible too.\n <note ids=\"role-not-option\" names=\"role\\ not\\ option\">\n <paragraph>\n <strong>\n a role is not an option\n .\n <system_message level=\"1\" line=\"5\" source=\"test data\" type=\"INFO\">\n <paragraph>\n No role entry for \"strong\" in module \"docutils.parsers.rst.languages.de\".\n Using English fallback for role \"strong\".\n <note>\n <paragraph>\n a role is\n <strong>\n not an option\n , even if its starts a line.\n",
"asserts_error": true
},
{
"file": "test_directives/test_admonitions_de.py",
"group": "admonitions",
"index": 3,
"line": 176,
"rst": ".. Notiz::\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Content block expected for the \"Notiz\" directive; none found.\n <literal_block xml:space=\"preserve\">\n .. Notiz::\n",
"asserts_error": true
},
{
"file": "test_directives/test_admonitions_de.py",
"group": "admonitions",
"index": 4,
"line": 187,
"rst": ".. admonition:: Admonition\n\n This is a generic admonition.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n No directive entry for \"admonition\" in module \"docutils.parsers.rst.languages.de\".\n Using English fallback for directive \"admonition\".\n <admonition classes=\"admonition-admonition\">\n <title>\n Admonition\n <paragraph>\n This is a generic admonition.\n",
"asserts_error": true
},
{
"file": "test_directives/test_admonitions_de.py",
"group": "admonitions",
"index": 5,
"line": 204,
"rst": ".. admonition:: And, by the way...\n\n You can make up your own admonition too.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n No directive entry for \"admonition\" in module \"docutils.parsers.rst.languages.de\".\n Using English fallback for directive \"admonition\".\n <admonition classes=\"admonition-and-by-the-way\">\n <title>\n And, by the way...\n <paragraph>\n You can make up your own admonition too.\n",
"asserts_error": true
},
{
"file": "test_directives/test_admonitions_de.py",
"group": "admonitions",
"index": 6,
"line": 221,
"rst": ".. admonition:: Admonition\n :class: emergency\n :name: reference name\n\n Test the \"class\" override.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n No directive entry for \"admonition\" in module \"docutils.parsers.rst.languages.de\".\n Using English fallback for directive \"admonition\".\n <admonition classes=\"emergency\" ids=\"reference-name\" names=\"reference\\ name\">\n <title>\n Admonition\n <paragraph>\n Test the \"class\" override.\n",
"asserts_error": true
},
{
"file": "test_directives/test_admonitions_de.py",
"group": "admonitions",
"index": 7,
"line": 240,
"rst": ".. admonition::\n\n Generic admonitions require a title.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n No directive entry for \"admonition\" in module \"docutils.parsers.rst.languages.de\".\n Using English fallback for directive \"admonition\".\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"admonition\" directive:\n 1 argument(s) required, 0 supplied.\n <literal_block xml:space=\"preserve\">\n .. admonition::\n \n Generic admonitions require a title.\n",
"asserts_error": true
},
{
"file": "test_directives/test_admonitions_dummy_lang.py",
"group": "admonitions",
"index": 0,
"line": 46,
"rst": ".. Dummy-Attention:: directive with silly localised name.\n\n.. Attention:: English fallback (an INFO is written).\n",
"doctree": "<document source=\"test data\">\n <attention>\n <paragraph>\n directive with silly localised name.\n <system_message level=\"1\" line=\"3\" source=\"test data\" type=\"INFO\">\n <paragraph>\n No directive entry for \"Attention\" in module \"test.local_dummy_lang\".\n Using English fallback for directive \"Attention\".\n <attention>\n <paragraph>\n English fallback (an INFO is written).\n",
"asserts_error": true
},
{
"file": "test_directives/test_class.py",
"group": "class",
"index": 0,
"line": 42,
"rst": ".. class:: class1 class2\n",
"doctree": "<document source=\"test data\">\n <pending>\n .. internal attributes:\n .transform: docutils.transforms.misc.ClassAttribute\n .details:\n class: ['class1', 'class2']\n directive: 'class'\n",
"asserts_error": false
},
{
"file": "test_directives/test_class.py",
"group": "class",
"index": 1,
"line": 54,
"rst": ".. class:: class1 class2\n\n The classes are applied to this paragraph.\n\n And this one.\n",
"doctree": "<document source=\"test data\">\n <paragraph classes=\"class1 class2\">\n The classes are applied to this paragraph.\n <paragraph classes=\"class1 class2\">\n And this one.\n",
"asserts_error": false
},
{
"file": "test_directives/test_code.py",
"group": "code",
"index": 0,
"line": 55,
"rst": ".. code::\n\n This is a code block.\n",
"doctree": "<document source=\"test data\">\n <literal_block classes=\"code\" xml:space=\"preserve\">\n This is a code block.\n",
"asserts_error": false
},
{
"file": "test_directives/test_code.py",
"group": "code",
"index": 1,
"line": 65,
"rst": ".. code::\n :class: testclass\n :name: without argument\n\n This is a code block with generic options.\n",
"doctree": "<document source=\"test data\">\n <literal_block classes=\"code testclass\" ids=\"without-argument\" names=\"without\\ argument\" xml:space=\"preserve\">\n This is a code block with generic options.\n",
"asserts_error": false
},
{
"file": "test_directives/test_code.py",
"group": "code",
"index": 2,
"line": 77,
"rst": ".. code:: text\n :class: testclass\n\n This is a code block with text.\n",
"doctree": "<document source=\"test data\">\n <literal_block classes=\"code text testclass\" xml:space=\"preserve\">\n This is a code block with text.\n",
"asserts_error": false
},
{
"file": "test_directives/test_code.py",
"group": "code",
"index": 3,
"line": 88,
"rst": ".. code::\n :number-lines:\n\n This is a code block with text.\n",
"doctree": "<document source=\"test data\">\n <literal_block classes=\"code\" xml:space=\"preserve\">\n <inline classes=\"ln\">\n 1 \n This is a code block with text.\n",
"asserts_error": false
},
{
"file": "test_directives/test_code.py",
"group": "code",
"index": 4,
"line": 101,
"rst": ".. code::\n :number-lines: 30\n\n This is a code block with text.\n",
"doctree": "<document source=\"test data\">\n <literal_block classes=\"code\" xml:space=\"preserve\">\n <inline classes=\"ln\">\n 30 \n This is a code block with text.\n",
"asserts_error": false
},
{
"file": "test_directives/test_code.py",
"group": "code",
"index": 5,
"line": 114,
"rst": ".. code::\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Content block expected for the \"code\" directive; none found.\n <literal_block xml:space=\"preserve\">\n .. code::\n",
"asserts_error": true
},
{
"file": "test_directives/test_code.py",
"group": "code_parsing",
"index": 0,
"line": 128,
"rst": ".. code:: python3\n :class: testclass\n\n print('hello world') # to stdout\n",
"doctree": "<document source=\"test data\">\n <literal_block classes=\"code python3 testclass\" xml:space=\"preserve\">\n \n <inline classes=\"name builtin\">\n print\n <inline classes=\"punctuation\">\n (\n <inline classes=\"literal string single\">\n 'hello world'\n <inline classes=\"punctuation\">\n )\n \n <inline classes=\"comment single\">\n # to stdout\n",
"asserts_error": false
},
{
"file": "test_directives/test_code.py",
"group": "code_parsing",
"index": 2,
"line": 265,
"rst": ".. code:: latex\n :class: testclass\n\n hello \\emph{world} % emphasize\n",
"doctree": "<document source=\"test data\">\n <literal_block classes=\"code latex testclass\" xml:space=\"preserve\">\n hello \n <inline classes=\"keyword\">\n \\emph\n <inline classes=\"name builtin\">\n {\n world\n <inline classes=\"name builtin\">\n }\n \n <inline classes=\"comment\">\n % emphasize\n",
"asserts_error": false
},
{
"file": "test_directives/test_code.py",
"group": "code_parsing",
"index": 3,
"line": 286,
"rst": ".. code:: rst\n :number-lines:\n\n This is a code block with text.\n",
"doctree": "<document source=\"test data\">\n <literal_block classes=\"code rst\" xml:space=\"preserve\">\n <inline classes=\"ln\">\n 1 \n This is a code block with text.\n",
"asserts_error": false
},
{
"file": "test_directives/test_code.py",
"group": "code_parsing",
"index": 4,
"line": 299,
"rst": "Code not parsed but warning silenced in ParserTestCase.\n\n.. code:: s-lang\n\n % abc.sl\n autoload(\"abc_mode\", \"abc\");\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Code not parsed but warning silenced in ParserTestCase.\n <literal_block classes=\"code s-lang\" xml:space=\"preserve\">\n % abc.sl\n autoload(\"abc_mode\", \"abc\");\n",
"asserts_error": false
},
{
"file": "test_directives/test_code.py",
"group": "code_parsing",
"index": 5,
"line": 315,
"rst": "Place the language name in a class argument to avoid the no-lexer warning:\n\n.. code::\n :class: s-lang\n\n % abc.sl\n autoload(\"abc_mode\", \"abc\");\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Place the language name in a class argument to avoid the no-lexer warning:\n <literal_block classes=\"code s-lang\" xml:space=\"preserve\">\n % abc.sl\n autoload(\"abc_mode\", \"abc\");\n",
"asserts_error": false
},
{
"file": "test_directives/test_code_long.py",
"group": "code_parsing_long",
"index": 1,
"line": 160,
"rst": ".. code:: latex\n\n hello \\emph{world} % emphasize\n",
"doctree": "<document source=\"test data\">\n <literal_block classes=\"code latex\" xml:space=\"preserve\">\n hello \n <inline classes=\"keyword\">\n \\emph\n <inline classes=\"name builtin\">\n {\n world\n <inline classes=\"name builtin\">\n }\n \n <inline classes=\"comment\">\n % emphasize\n",
"asserts_error": false
},
{
"file": "test_directives/test_code_none.py",
"group": "code_parsing_none",
"index": 0,
"line": 43,
"rst": ".. code::\n\n This is a code block.\n",
"doctree": "<document source=\"test data\">\n <literal_block classes=\"code\" xml:space=\"preserve\">\n This is a code block.\n",
"asserts_error": false
},
{
"file": "test_directives/test_code_none.py",
"group": "code_parsing_none",
"index": 1,
"line": 53,
"rst": ".. code:: python\n :number-lines: 7\n\n def my_function():\n '''Test the lexer.\n '''\n\n # and now for something completely different\n print(8/2)\n",
"doctree": "<document source=\"test data\">\n <literal_block classes=\"code python\" xml:space=\"preserve\">\n <inline classes=\"ln\">\n 7 \n def my_function():\n <inline classes=\"ln\">\n 8 \n '''Test the lexer.\n <inline classes=\"ln\">\n 9 \n '''\n <inline classes=\"ln\">\n 10 \n \n <inline classes=\"ln\">\n 11 \n # and now for something completely different\n <inline classes=\"ln\">\n 12 \n print(8/2)\n",
"asserts_error": false
},
{
"file": "test_directives/test_code_none.py",
"group": "code_parsing_none",
"index": 2,
"line": 86,
"rst": ".. code:: latex\n\n hello \\emph{world} % emphasize\n",
"doctree": "<document source=\"test data\">\n <literal_block classes=\"code latex\" xml:space=\"preserve\">\n hello \\emph{world} % emphasize\n",
"asserts_error": false
},
{
"file": "test_directives/test_compound.py",
"group": "compound",
"index": 0,
"line": 42,
"rst": ".. compound::\n\n Compound paragraphs are single logical paragraphs\n which contain embedded\n\n * lists\n * tables\n * literal blocks\n * and other body elements\n\n and are split into multiple physical paragraphs.\n",
"doctree": "<document source=\"test data\">\n <compound>\n <paragraph>\n Compound paragraphs are single logical paragraphs\n which contain embedded\n <bullet_list bullet=\"*\">\n <list_item>\n <paragraph>\n lists\n <list_item>\n <paragraph>\n tables\n <list_item>\n <paragraph>\n literal blocks\n <list_item>\n <paragraph>\n and other body elements\n <paragraph>\n and are split into multiple physical paragraphs.\n",
"asserts_error": false
},
{
"file": "test_directives/test_compound.py",
"group": "compound",
"index": 1,
"line": 77,
"rst": ".. compound::\n :name: interesting\n :class: log\n\n This is an extremely interesting compound paragraph containing a\n simple paragraph, a literal block with some useless log messages::\n\n Connecting... OK\n Transmitting data... OK\n Disconnecting... OK\n\n and another simple paragraph which is actually just a continuation\n of the first simple paragraph, with the literal block in between.\n",
"doctree": "<document source=\"test data\">\n <compound classes=\"log\" ids=\"interesting\" names=\"interesting\">\n <paragraph>\n This is an extremely interesting compound paragraph containing a\n simple paragraph, a literal block with some useless log messages:\n <literal_block xml:space=\"preserve\">\n Connecting... OK\n Transmitting data... OK\n Disconnecting... OK\n <paragraph>\n and another simple paragraph which is actually just a continuation\n of the first simple paragraph, with the literal block in between.\n",
"asserts_error": false
},
{
"file": "test_directives/test_compound.py",
"group": "compound",
"index": 2,
"line": 106,
"rst": ".. compound:: content may start on same line\n\n second paragraph\n",
"doctree": "<document source=\"test data\">\n <compound>\n <paragraph>\n content may start on same line\n <paragraph>\n second paragraph\n",
"asserts_error": false
},
{
"file": "test_directives/test_container.py",
"group": "container",
"index": 0,
"line": 42,
"rst": ".. container::\n\n \"container\" is a generic element, an extension mechanism for\n users & applications.\n\n Containers may contain arbitrary body elements.\n",
"doctree": "<document source=\"test data\">\n <container>\n <paragraph>\n \"container\" is a generic element, an extension mechanism for\n users & applications.\n <paragraph>\n Containers may contain arbitrary body elements.\n",
"asserts_error": false
},
{
"file": "test_directives/test_container.py",
"group": "container",
"index": 1,
"line": 59,
"rst": ".. container:: custom\n\n Some text.\n",
"doctree": "<document source=\"test data\">\n <container classes=\"custom\">\n <paragraph>\n Some text.\n",
"asserts_error": false
},
{
"file": "test_directives/test_container.py",
"group": "container",
"index": 2,
"line": 70,
"rst": ".. container:: one two three\n four\n\n Multiple classes.\n\n Multi-line argument.\n\n Multiple paragraphs in the container.\n",
"doctree": "<document source=\"test data\">\n <container classes=\"one two three four\">\n <paragraph>\n Multiple classes.\n <paragraph>\n Multi-line argument.\n <paragraph>\n Multiple paragraphs in the container.\n",
"asserts_error": false
},
{
"file": "test_directives/test_container.py",
"group": "container",
"index": 3,
"line": 90,
"rst": ".. container::\n :name: my name\n\n The name argument allows hyperlinks to `my name`_.\n",
"doctree": "<document source=\"test data\">\n <container ids=\"my-name\" names=\"my\\ name\">\n <paragraph>\n The name argument allows hyperlinks to \n <reference name=\"my name\" refname=\"my name\">\n my name\n .\n",
"asserts_error": false
},
{
"file": "test_directives/test_contents.py",
"group": "contents",
"index": 0,
"line": 49,
"rst": ".. contents::\n",
"doctree": "<document source=\"test data\">\n <topic classes=\"contents\" ids=\"contents\" names=\"contents\">\n <title>\n Contents\n <pending>\n .. internal attributes:\n .transform: docutils.transforms.parts.Contents\n .details:\n",
"asserts_error": false
},
{
"file": "test_directives/test_contents.py",
"group": "contents",
"index": 1,
"line": 62,
"rst": ".. contents:: Table of Contents\n",
"doctree": "<document source=\"test data\">\n <topic classes=\"contents\" ids=\"table-of-contents\" names=\"table\\ of\\ contents\">\n <title>\n Table of Contents\n <pending>\n .. internal attributes:\n .transform: docutils.transforms.parts.Contents\n .details:\n",
"asserts_error": false
},
{
"file": "test_directives/test_contents.py",
"group": "contents",
"index": 2,
"line": 75,
"rst": ".. contents::\n Table of Contents\n",
"doctree": "<document source=\"test data\">\n <topic classes=\"contents\" ids=\"table-of-contents\" names=\"table\\ of\\ contents\">\n <title>\n Table of Contents\n <pending>\n .. internal attributes:\n .transform: docutils.transforms.parts.Contents\n .details:\n",
"asserts_error": false
},
{
"file": "test_directives/test_contents.py",
"group": "contents",
"index": 3,
"line": 89,
"rst": ".. contents:: Table\n of\n Contents\n",
"doctree": "<document source=\"test data\">\n <topic classes=\"contents\" ids=\"table-of-contents\" names=\"table\\ of\\ contents\">\n <title>\n Table\n of\n Contents\n <pending>\n .. internal attributes:\n .transform: docutils.transforms.parts.Contents\n .details:\n",
"asserts_error": false
},
{
"file": "test_directives/test_contents.py",
"group": "contents",
"index": 4,
"line": 106,
"rst": ".. contents:: *Table* of ``Contents``\n",
"doctree": "<document source=\"test data\">\n <topic classes=\"contents\" ids=\"table-of-contents\" names=\"table\\ of\\ contents\">\n <title>\n <emphasis>\n Table\n of \n <literal>\n Contents\n <pending>\n .. internal attributes:\n .transform: docutils.transforms.parts.Contents\n .details:\n",
"asserts_error": false
},
{
"file": "test_directives/test_contents.py",
"group": "contents",
"index": 5,
"line": 123,
"rst": ".. contents::\n :depth: 2\n :local:\n",
"doctree": "<document source=\"test data\">\n <topic classes=\"contents local\" ids=\"contents\" names=\"contents\">\n <pending>\n .. internal attributes:\n .transform: docutils.transforms.parts.Contents\n .details:\n depth: 2\n local: None\n",
"asserts_error": false
},
{
"file": "test_directives/test_contents.py",
"group": "contents",
"index": 6,
"line": 138,
"rst": ".. contents::\n :local: arg\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"contents\" directive:\n invalid option value: (option: \"local\"; value: 'arg')\n no argument is allowed; \"arg\" supplied.\n <literal_block xml:space=\"preserve\">\n .. contents::\n :local: arg\n",
"asserts_error": true
},
{
"file": "test_directives/test_contents.py",
"group": "contents",
"index": 7,
"line": 153,
"rst": ".. contents:: Table of Contents\n :local:\n :depth: 2\n :backlinks: none\n",
"doctree": "<document source=\"test data\">\n <topic classes=\"contents local\" ids=\"table-of-contents\" names=\"table\\ of\\ contents\">\n <title>\n Table of Contents\n <pending>\n .. internal attributes:\n .transform: docutils.transforms.parts.Contents\n .details:\n backlinks: None\n depth: 2\n local: None\n",
"asserts_error": false
},
{
"file": "test_directives/test_contents.py",
"group": "contents",
"index": 9,
"line": 187,
"rst": ".. contents::\n :width: 2\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"contents\" directive:\n unknown option: \"width\".\n <literal_block xml:space=\"preserve\">\n .. contents::\n :width: 2\n",
"asserts_error": true
},
{
"file": "test_directives/test_contents.py",
"group": "contents",
"index": 10,
"line": 201,
"rst": ".. contents::\n :backlinks: no way!\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"contents\" directive:\n invalid option value: (option: \"backlinks\"; value: 'no way!')\n \"no way!\" unknown; choose from \"top\", \"entry\", or \"none\".\n <literal_block xml:space=\"preserve\">\n .. contents::\n :backlinks: no way!\n",
"asserts_error": true
},
{
"file": "test_directives/test_contents.py",
"group": "contents",
"index": 11,
"line": 216,
"rst": ".. contents::\n :backlinks:\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"contents\" directive:\n invalid option value: (option: \"backlinks\"; value: None)\n must supply an argument; choose from \"top\", \"entry\", or \"none\".\n <literal_block xml:space=\"preserve\">\n .. contents::\n :backlinks:\n",
"asserts_error": true
},
{
"file": "test_directives/test_contents.py",
"group": "contents",
"index": 12,
"line": 231,
"rst": "* .. contents::\n",
"doctree": "<document source=\"test data\">\n <bullet_list bullet=\"*\">\n <list_item>\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n The \"contents\" directive may not be used within topics or body elements.\n <literal_block xml:space=\"preserve\">\n .. contents::\n",
"asserts_error": true
},
{
"file": "test_directives/test_contents.py",
"group": "contents",
"index": 13,
"line": 244,
"rst": ".. sidebar:: containing contents\n\n .. contents::\n",
"doctree": "<document source=\"test data\">\n <sidebar>\n <title>\n containing contents\n <topic classes=\"contents\" ids=\"contents\" names=\"contents\">\n <title>\n Contents\n <pending>\n .. internal attributes:\n .transform: docutils.transforms.parts.Contents\n .details:\n",
"asserts_error": false
},
{
"file": "test_directives/test_date.py",
"group": "date",
"index": 2,
"line": 67,
"rst": ".. date::\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Invalid context: the \"date\" directive can only be used within a substitution definition.\n <literal_block xml:space=\"preserve\">\n .. date::\n",
"asserts_error": true
},
{
"file": "test_directives/test_date.py",
"group": "decode_date",
"index": 0,
"line": 84,
"rst": ".. |date| date:: täglich\n",
"doctree": "<document source=\"test data\">\n <substitution_definition names=\"date\">\n täglich\n",
"asserts_error": false
},
{
"file": "test_directives/test_decorations.py",
"group": "headers",
"index": 0,
"line": 42,
"rst": ".. header:: a paragraph for the header\n",
"doctree": "<document source=\"test data\">\n <decoration>\n <header>\n <paragraph>\n a paragraph for the header\n",
"asserts_error": false
},
{
"file": "test_directives/test_decorations.py",
"group": "headers",
"index": 1,
"line": 52,
"rst": ".. header::\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Content block expected for the \"header\" directive; none found.\n <literal_block xml:space=\"preserve\">\n .. header::\n",
"asserts_error": true
},
{
"file": "test_directives/test_decorations.py",
"group": "headers",
"index": 2,
"line": 63,
"rst": ".. header:: first part of the header\n.. header:: second part of the header\n",
"doctree": "<document source=\"test data\">\n <decoration>\n <header>\n <paragraph>\n first part of the header\n <paragraph>\n second part of the header\n",
"asserts_error": false
},
{
"file": "test_directives/test_decorations.py",
"group": "footers",
"index": 0,
"line": 79,
"rst": ".. footer:: a paragraph for the footer\n",
"doctree": "<document source=\"test data\">\n <decoration>\n <footer>\n <paragraph>\n a paragraph for the footer\n",
"asserts_error": false
},
{
"file": "test_directives/test_decorations.py",
"group": "footers",
"index": 1,
"line": 89,
"rst": ".. footer:: even if a footer is declared first\n.. header:: the header appears first\n",
"doctree": "<document source=\"test data\">\n <decoration>\n <header>\n <paragraph>\n the header appears first\n <footer>\n <paragraph>\n even if a footer is declared first\n",
"asserts_error": false
},
{
"file": "test_directives/test_default_role.py",
"group": "default_role",
"index": 0,
"line": 42,
"rst": ".. default-role:: subscript\n\nThis is a `subscript`.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n This is a \n <subscript>\n subscript\n .\n",
"asserts_error": false
},
{
"file": "test_directives/test_default_role.py",
"group": "default_role",
"index": 1,
"line": 55,
"rst": "Must define a custom role before using it.\n\n.. default-role:: custom\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Must define a custom role before using it.\n <system_message level=\"1\" line=\"3\" source=\"test data\" type=\"INFO\">\n <paragraph>\n No role entry for \"custom\" in module \"docutils.parsers.rst.languages.en\".\n Trying \"custom\" as canonical role name.\n <system_message level=\"3\" line=\"3\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Unknown interpreted text role \"custom\".\n <literal_block xml:space=\"preserve\">\n .. default-role:: custom\n",
"asserts_error": true
},
{
"file": "test_directives/test_default_role.py",
"group": "default_role",
"index": 2,
"line": 74,
"rst": ".. role:: custom\n.. default-role:: custom\n\nThis text uses the `default role`.\n\n.. default-role::\n\nReturned the `default role` to its standard default.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n This text uses the \n <inline classes=\"custom\">\n default role\n .\n <paragraph>\n Returned the \n <title_reference>\n default role\n to its standard default.\n",
"asserts_error": false
},
{
"file": "test_directives/test_figures.py",
"group": "figures",
"index": 0,
"line": 44,
"rst": ".. figure:: picture.png\n",
"doctree": "<document source=\"test data\">\n <figure>\n <image uri=\"picture.png\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_figures.py",
"group": "figures",
"index": 1,
"line": 52,
"rst": ".. figure:: picture.png\n\n A picture with a caption.\n",
"doctree": "<document source=\"test data\">\n <figure>\n <image uri=\"picture.png\">\n <caption>\n A picture with a caption.\n",
"asserts_error": false
},
{
"file": "test_directives/test_figures.py",
"group": "figures",
"index": 2,
"line": 64,
"rst": ".. figure:: picture.png\n\n - A picture with an invalid caption.\n",
"doctree": "<document source=\"test data\">\n <figure>\n <image uri=\"picture.png\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Figure caption must be a paragraph or empty comment.\n <literal_block xml:space=\"preserve\">\n .. figure:: picture.png\n \n - A picture with an invalid caption.\n",
"asserts_error": true
},
{
"file": "test_directives/test_figures.py",
"group": "figures",
"index": 3,
"line": 81,
"rst": ".. figure:: picture.png\n\n ..\n\n A picture with a legend but no caption.\n",
"doctree": "<document source=\"test data\">\n <figure>\n <image uri=\"picture.png\">\n <legend>\n <paragraph>\n A picture with a legend but no caption.\n",
"asserts_error": false
},
{
"file": "test_directives/test_figures.py",
"group": "figures",
"index": 4,
"line": 96,
"rst": ".. Figure:: picture.png\n :height: 100\n :width: 200\n :scale: 50\n :loading: embed\n\n A picture with image options and a caption.\n",
"doctree": "<document source=\"test data\">\n <figure>\n <image height=\"100\" loading=\"embed\" scale=\"50\" uri=\"picture.png\" width=\"200\">\n <caption>\n A picture with image options and a caption.\n",
"asserts_error": false
},
{
"file": "test_directives/test_figures.py",
"group": "figures",
"index": 5,
"line": 112,
"rst": ".. Figure:: picture.png\n :height: 100\n :alt: alternate text\n :width: 200\n :scale: 50\n :loading: lazy\n :figwidth: 300\n :figclass: class1 class2\n :name: fig:pix\n\n A picture with image options on individual lines, and this caption.\n",
"doctree": "<document source=\"test data\">\n <figure classes=\"class1 class2\" width=\"300px\">\n <image alt=\"alternate text\" height=\"100\" ids=\"fig-pix\" loading=\"lazy\" names=\"fig:pix\" scale=\"50\" uri=\"picture.png\" width=\"200\">\n <caption>\n A picture with image options on individual lines, and this caption.\n",
"asserts_error": false
},
{
"file": "test_directives/test_figures.py",
"group": "figures",
"index": 6,
"line": 132,
"rst": ".. figure:: picture.png\n :align: center\n\n A figure with explicit alignment.\n",
"doctree": "<document source=\"test data\">\n <figure align=\"center\">\n <image uri=\"picture.png\">\n <caption>\n A figure with explicit alignment.\n",
"asserts_error": false
},
{
"file": "test_directives/test_figures.py",
"group": "figures",
"index": 7,
"line": 145,
"rst": ".. figure:: picture.png\n :align: top\n\n A figure with wrong alignment.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"figure\" directive:\n invalid option value: (option: \"align\"; value: 'top')\n \"top\" unknown; choose from \"left\", \"center\", or \"right\".\n <literal_block xml:space=\"preserve\">\n .. figure:: picture.png\n :align: top\n \n A figure with wrong alignment.\n",
"asserts_error": true
},
{
"file": "test_directives/test_figures.py",
"group": "figures",
"index": 8,
"line": 164,
"rst": "This figure lacks a caption. It may still have a\n\"Figure 1.\"-style caption appended in the output.\n\n.. figure:: picture.png\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n This figure lacks a caption. It may still have a\n \"Figure 1.\"-style caption appended in the output.\n <figure>\n <image uri=\"picture.png\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_figures.py",
"group": "figures",
"index": 9,
"line": 178,
"rst": ".. figure:: picture.png\n\n A picture with a caption and a legend.\n\n +-----------------------+-----------------------+\n | Symbol | Meaning |\n +=======================+=======================+\n | .. image:: tent.png | Campground |\n +-----------------------+-----------------------+\n | .. image:: waves.png | Lake |\n +-----------------------+-----------------------+\n | .. image:: peak.png | Mountain |\n +-----------------------+-----------------------+\n",
"doctree": "<document source=\"test data\">\n <figure>\n <image uri=\"picture.png\">\n <caption>\n A picture with a caption and a legend.\n <legend>\n <table>\n <tgroup cols=\"2\">\n <colspec colwidth=\"23\">\n <colspec colwidth=\"23\">\n <thead>\n <row>\n <entry>\n <paragraph>\n Symbol\n <entry>\n <paragraph>\n Meaning\n <tbody>\n <row>\n <entry>\n <image uri=\"tent.png\">\n <entry>\n <paragraph>\n Campground\n <row>\n <entry>\n <image uri=\"waves.png\">\n <entry>\n <paragraph>\n Lake\n <row>\n <entry>\n <image uri=\"peak.png\">\n <entry>\n <paragraph>\n Mountain\n",
"asserts_error": false
},
{
"file": "test_directives/test_figures.py",
"group": "figures",
"index": 10,
"line": 232,
"rst": ".. figure:: picture.png\n\n ..\n\n A picture with a legend but no caption.\n (The empty comment replaces the caption, which must\n be a single paragraph.)\n",
"doctree": "<document source=\"test data\">\n <figure>\n <image uri=\"picture.png\">\n <legend>\n <paragraph>\n A picture with a legend but no caption.\n (The empty comment replaces the caption, which must\n be a single paragraph.)\n",
"asserts_error": false
},
{
"file": "test_directives/test_figures.py",
"group": "figures",
"index": 11,
"line": 251,
"rst": "Testing for line-leaks:\n\n.. figure:: picture.png\n\n A picture with a caption.\n.. figure:: picture.png\n\n A picture with a caption.\n.. figure:: picture.png\n\n A picture with a caption.\n.. figure:: picture.png\n.. figure:: picture.png\n.. figure:: picture.png\n.. figure:: picture.png\n\n A picture with a caption.\n\n.. figure:: picture.png\n\n.. figure:: picture.png\n\n A picture with a caption.\n\n.. figure:: picture.png\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Testing for line-leaks:\n <figure>\n <image uri=\"picture.png\">\n <caption>\n A picture with a caption.\n <figure>\n <image uri=\"picture.png\">\n <caption>\n A picture with a caption.\n <figure>\n <image uri=\"picture.png\">\n <caption>\n A picture with a caption.\n <figure>\n <image uri=\"picture.png\">\n <figure>\n <image uri=\"picture.png\">\n <figure>\n <image uri=\"picture.png\">\n <figure>\n <image uri=\"picture.png\">\n <caption>\n A picture with a caption.\n <figure>\n <image uri=\"picture.png\">\n <figure>\n <image uri=\"picture.png\">\n <caption>\n A picture with a caption.\n <figure>\n <image uri=\"picture.png\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 0,
"line": 58,
"rst": ".. image:: picture.png\n",
"doctree": "<document source=\"test data\">\n <image uri=\"picture.png\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 1,
"line": 65,
"rst": ".. image::\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"image\" directive:\n 1 argument(s) required, 0 supplied.\n <literal_block xml:space=\"preserve\">\n .. image::\n",
"asserts_error": true
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 2,
"line": 77,
"rst": ".. image:: one two three.png\n",
"doctree": "<document source=\"test data\">\n <image uri=\"onetwothree.png\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 3,
"line": 84,
"rst": ".. image:: picture.png\n :height: 100\n :width: 200\n :scale: 50\n",
"doctree": "<document source=\"test data\">\n <image height=\"100\" scale=\"50\" uri=\"picture.png\" width=\"200\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 4,
"line": 94,
"rst": ".. image::\n picture.png\n :height: 100\n :width: 200\n :scale: 50\n",
"doctree": "<document source=\"test data\">\n <image height=\"100\" scale=\"50\" uri=\"picture.png\" width=\"200\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 5,
"line": 105,
"rst": ".. image::\n :height: 100\n :width: 200\n :scale: 50\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"image\" directive:\n 1 argument(s) required, 0 supplied.\n <literal_block xml:space=\"preserve\">\n .. image::\n :height: 100\n :width: 200\n :scale: 50\n",
"asserts_error": true
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 6,
"line": 125,
"rst": ".. image:: a/very/long/path/to/\n picture.png\n :height: 100\n :width: 200\n :scale: 50\n",
"doctree": "<document source=\"test data\">\n <image height=\"100\" scale=\"50\" uri=\"a/very/long/path/to/picture.png\" width=\"200\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 7,
"line": 139,
"rst": ".. image:: picture.png\n :scale 50\n",
"doctree": "<document source=\"test data\">\n <image uri=\"picture.png:scale50\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 8,
"line": 147,
"rst": ".. image:: picture.png\n :: 50\n",
"doctree": "<document source=\"test data\">\n <image uri=\"picture.png::50\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 9,
"line": 156,
"rst": ".. image:: picture.png\n scale: 50\n",
"doctree": "<document source=\"test data\">\n <image uri=\"picture.pngscale:50\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 10,
"line": 164,
"rst": ".. image:: picture.png\n :width: 200px\n :height: 100 em\n",
"doctree": "<document source=\"test data\">\n <image height=\"100em\" uri=\"picture.png\" width=\"200px\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 11,
"line": 173,
"rst": ".. image:: picture.png\n :width: 50%\n :height: 10mm\n",
"doctree": "<document source=\"test data\">\n <image height=\"10mm\" uri=\"picture.png\" width=\"50%\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 12,
"line": 182,
"rst": ".. image:: picture.png\n :width: 50%\n :height: 40%\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"image\" directive:\n invalid option value: (option: \"height\"; value: '40%')\n not a positive measure of one of the following units:\n \"em\" \"ex\" \"px\" \"in\" \"cm\" \"mm\" \"pt\" \"pc\" \"\".\n <literal_block xml:space=\"preserve\">\n .. image:: picture.png\n :width: 50%\n :height: 40%\n",
"asserts_error": true
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 13,
"line": 200,
"rst": ".. image:: picture.png\n :width: 20mc\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"image\" directive:\n invalid option value: (option: \"width\"; value: '20mc')\n not a positive measure of one of the following units:\n \"em\" \"ex\" \"px\" \"in\" \"cm\" \"mm\" \"pt\" \"pc\" \"%\".\n <literal_block xml:space=\"preserve\">\n .. image:: picture.png\n :width: 20mc\n",
"asserts_error": true
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 14,
"line": 216,
"rst": ".. image:: picture.png\n :height: 100\n :width: 200\n :scale: 50\n :alt: Alternate text for the picture\n",
"doctree": "<document source=\"test data\">\n <image alt=\"Alternate text for the picture\" height=\"100\" scale=\"50\" uri=\"picture.png\" width=\"200\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 15,
"line": 227,
"rst": ".. image:: picture.png\n :scale: -50\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"image\" directive:\n invalid option value: (option: \"scale\"; value: '-50')\n negative value; must be positive or zero.\n <literal_block xml:space=\"preserve\">\n .. image:: picture.png\n :scale: -50\n",
"asserts_error": true
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 17,
"line": 257,
"rst": ".. image:: picture.png\n :height: 100\n :scale 50\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"image\" directive:\n invalid option block.\n <literal_block xml:space=\"preserve\">\n .. image:: picture.png\n :height: 100\n :scale 50\n",
"asserts_error": true
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 18,
"line": 273,
"rst": ".. image:: picture.png\n :sale: 50\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"image\" directive:\n unknown option: \"sale\".\n <literal_block xml:space=\"preserve\">\n .. image:: picture.png\n :sale: 50\n",
"asserts_error": true
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 19,
"line": 287,
"rst": ".. image:: picture.png\n :scale is: 50\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"image\" directive:\n invalid option data: extension option field name may not contain multiple words.\n <literal_block xml:space=\"preserve\">\n .. image:: picture.png\n :scale is: 50\n",
"asserts_error": true
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 21,
"line": 316,
"rst": ".. image:: picture.png\n :scale: 50\n :scale: 50\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"image\" directive:\n invalid option data: duplicate option \"scale\".\n <literal_block xml:space=\"preserve\">\n .. image:: picture.png\n :scale: 50\n :scale: 50\n",
"asserts_error": true
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 22,
"line": 332,
"rst": ".. image:: picture.png\n :alt:\n\n(Empty \"alt\" option.)\n",
"doctree": "<document source=\"test data\">\n <image alt=\"\" uri=\"picture.png\">\n <paragraph>\n (Empty \"alt\" option.)\n",
"asserts_error": false
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 23,
"line": 344,
"rst": ".. image:: picture.png\n :target: bigpicture.png\n :name: fig:pix\n",
"doctree": "<document source=\"test data\">\n <reference refuri=\"bigpicture.png\">\n <image ids=\"fig-pix\" names=\"fig:pix\" uri=\"picture.png\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 24,
"line": 354,
"rst": ".. image:: picture.png\n :target: indirect_\n",
"doctree": "<document source=\"test data\">\n <reference name=\"indirect\" refname=\"indirect\">\n <image uri=\"picture.png\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 25,
"line": 363,
"rst": ".. image:: picture.png\n :target: a/multi/\n line/uri\n\n.. image:: picture.png\n :target: `a multi line\n internal reference`_\n",
"doctree": "<document source=\"test data\">\n <reference refuri=\"a/multi/line/uri\">\n <image uri=\"picture.png\">\n <reference name=\"a multi line internal reference\" refname=\"a multi line internal reference\">\n <image uri=\"picture.png\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 26,
"line": 379,
"rst": ".. image:: picture.png\n :target:\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"image\" directive:\n invalid option value: (option: \"target\"; value: None)\n argument required but none supplied.\n <literal_block xml:space=\"preserve\">\n .. image:: picture.png\n :target:\n",
"asserts_error": true
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 27,
"line": 394,
"rst": ".. image:: picture.png\n :align: left\n",
"doctree": "<document source=\"test data\">\n <image align=\"left\" uri=\"picture.png\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 28,
"line": 402,
"rst": ".. image:: picture.png\n :align: top\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"image\" directive: \"top\" is not a valid value for the \"align\" option. Valid values for \"align\" are: \"left\", \"center\", \"right\".\n <literal_block xml:space=\"preserve\">\n .. image:: picture.png\n :align: top\n",
"asserts_error": true
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 29,
"line": 415,
"rst": ".. |img| image:: picture.png\n :align: top\n",
"doctree": "<document source=\"test data\">\n <substitution_definition names=\"img\">\n <image align=\"top\" alt=\"img\" uri=\"picture.png\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 30,
"line": 424,
"rst": ".. |img| image:: picture.png\n :align: left\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"image\" directive: \"left\" is not a valid value for the \"align\" option within a substitution definition. Valid values for \"align\" are: \"top\", \"middle\", \"bottom\".\n <literal_block xml:space=\"preserve\">\n image:: picture.png\n :align: left\n <system_message level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Substitution definition \"img\" empty or invalid.\n <literal_block xml:space=\"preserve\">\n .. |img| image:: picture.png\n :align: left\n",
"asserts_error": true
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 31,
"line": 443,
"rst": ".. image:: picture.png\n :align: ä\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"image\" directive:\n invalid option value: (option: \"align\"; value: 'ä')\n \"ä\" unknown; choose from \"top\", \"middle\", \"bottom\", \"left\", \"center\", or \"right\".\n <literal_block xml:space=\"preserve\">\n .. image:: picture.png\n :align: ä\n",
"asserts_error": true
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 32,
"line": 458,
"rst": "\n.. image:: test.png\n :target: Uppercase_\n\n.. _Uppercase: https://docutils.sourceforge.io/\n",
"doctree": "<document source=\"test data\">\n <reference name=\"Uppercase\" refname=\"uppercase\">\n <image uri=\"test.png\">\n <target ids=\"uppercase\" names=\"uppercase\" refuri=\"https://docutils.sourceforge.io/\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 33,
"line": 470,
"rst": "\n.. image:: path\\ with\\ spaces/name\\ with\\ spaces.png\n :target: path\\ with\\ spaces/\n target\\ with\\ spaces\\ across\\ lines.html\n",
"doctree": "<document source=\"test data\">\n <reference refuri=\"path with spaces/target with spaces across lines.html\">\n <image uri=\"path with spaces/name with spaces.png\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_images.py",
"group": "images",
"index": 34,
"line": 480,
"rst": "\n.. image:: test.png\n :loading: embed\n.. image:: test.png\n :loading: link\n.. image:: test.png\n :loading: lazy\n",
"doctree": "<document source=\"test data\">\n <image loading=\"embed\" uri=\"test.png\">\n <image loading=\"link\" uri=\"test.png\">\n <image loading=\"lazy\" uri=\"test.png\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_include.py",
"group": "include",
"index": 7,
"line": 289,
"rst": "Include Test\n============\n\n.. include:: nonexistent.txt\n\nA paragraph.\n",
"doctree": "<document source=\"test data\">\n <section ids=\"include-test\" names=\"include\\ test\">\n <title>\n Include Test\n <system_message level=\"4\" line=\"4\" source=\"test data\" type=\"SEVERE\">\n <paragraph>\n Problems with \"include\" directive path:\n InputError: [Errno 2] No such file or directory: 'nonexistent.txt'.\n <literal_block xml:space=\"preserve\">\n .. include:: nonexistent.txt\n <paragraph>\n A paragraph.\n",
"asserts_error": true
},
{
"file": "test_directives/test_include.py",
"group": "include",
"index": 21,
"line": 872,
"rst": "Standard include data file:\n\n.. include:: <isogrk4.txt>\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Standard include data file:\n <comment xml:space=\"preserve\">\n This data file has been placed in the public domain.\n <comment xml:space=\"preserve\">\n Derived from the Unicode character mappings available from\n <http://www.w3.org/2003/entities/xml/>.\n Processed by unicode2rstsubs.py, part of Docutils:\n <https://docutils.sourceforge.io>.\n <substitution_definition names=\"b.Gammad\">\n Ϝ\n <substitution_definition names=\"b.gammad\">\n ϝ\n",
"asserts_error": false
},
{
"file": "test_directives/test_line_blocks.py",
"group": "line_blocks",
"index": 0,
"line": 42,
"rst": ".. line-block::\n\n This is a line block.\n Newlines are *preserved*.\n As is initial whitespace.\n",
"doctree": "<document source=\"test data\">\n <line_block>\n <line>\n This is a line block.\n <line>\n Newlines are \n <emphasis>\n preserved\n .\n <line_block>\n <line>\n As is initial whitespace.\n",
"asserts_error": false
},
{
"file": "test_directives/test_line_blocks.py",
"group": "line_blocks",
"index": 1,
"line": 63,
"rst": ".. line-block::\n :class: linear\n :name: cit:short\n\n This is a line block with options.\n",
"doctree": "<document source=\"test data\">\n <line_block classes=\"linear\" ids=\"cit-short\" names=\"cit:short\">\n <line>\n This is a line block with options.\n",
"asserts_error": false
},
{
"file": "test_directives/test_line_blocks.py",
"group": "line_blocks",
"index": 2,
"line": 76,
"rst": ".. line-block::\n\n Inline markup *may not span\n multiple lines* of a line block.\n",
"doctree": "<document source=\"test data\">\n <line_block>\n <line>\n Inline markup \n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n *\n may not span\n <line_block>\n <line>\n multiple lines* of a line block.\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"2\" line=\"3\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline emphasis start-string without end-string.\n",
"asserts_error": true
},
{
"file": "test_directives/test_line_blocks.py",
"group": "line_blocks",
"index": 3,
"line": 97,
"rst": ".. line-block::\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Content block expected for the \"line-block\" directive; none found.\n <literal_block xml:space=\"preserve\">\n .. line-block::\n",
"asserts_error": true
},
{
"file": "test_directives/test_math.py",
"group": "argument",
"index": 0,
"line": 42,
"rst": ".. math:: y = f(x)\n",
"doctree": "<document source=\"test data\">\n <math_block xml:space=\"preserve\">\n y = f(x)\n",
"asserts_error": false
},
{
"file": "test_directives/test_math.py",
"group": "content",
"index": 0,
"line": 53,
"rst": ".. math::\n\n 1+1=2\n",
"doctree": "<document source=\"test data\">\n <math_block xml:space=\"preserve\">\n 1+1=2\n",
"asserts_error": false
},
{
"file": "test_directives/test_math.py",
"group": "options",
"index": 0,
"line": 66,
"rst": ".. math::\n :class: new\n :name: eq:Eulers law\n\n e^i*2*\\pi = 1\n",
"doctree": "<document source=\"test data\">\n <math_block classes=\"new\" ids=\"eq-eulers-law\" names=\"eq:eulers\\ law\" xml:space=\"preserve\">\n e^i*2*\\pi = 1\n",
"asserts_error": false
},
{
"file": "test_directives/test_math.py",
"group": "argument_and_content",
"index": 0,
"line": 81,
"rst": ".. math:: y = f(x)\n\n 1+1=2\n\n",
"doctree": "<document source=\"test data\">\n <math_block xml:space=\"preserve\">\n y = f(x)\n <math_block xml:space=\"preserve\">\n 1+1=2\n",
"asserts_error": false
},
{
"file": "test_directives/test_math.py",
"group": "content_with_blank_line",
"index": 0,
"line": 97,
"rst": ".. math::\n\n 1+1=2\n\n E = mc^2\n",
"doctree": "<document source=\"test data\">\n <math_block xml:space=\"preserve\">\n 1+1=2\n <math_block xml:space=\"preserve\">\n E = mc^2\n",
"asserts_error": false
},
{
"file": "test_directives/test_meta.py",
"group": "meta",
"index": 0,
"line": 42,
"rst": ".. meta::\n :description: The reStructuredText plaintext markup language\n :keywords: plaintext,markup language\n",
"doctree": "<document source=\"test data\">\n <meta content=\"The reStructuredText plaintext markup language\" name=\"description\">\n <meta content=\"plaintext,markup language\" name=\"keywords\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_meta.py",
"group": "meta",
"index": 1,
"line": 52,
"rst": ".. meta::\n :description lang=en: An amusing story\n :description lang=fr: Un histoire amusant\n",
"doctree": "<document source=\"test data\">\n <meta content=\"An amusing story\" lang=\"en\" name=\"description\">\n <meta content=\"Un histoire amusant\" lang=\"fr\" name=\"description\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_meta.py",
"group": "meta",
"index": 2,
"line": 62,
"rst": ".. meta::\n :http-equiv=Content-Type: text/html; charset=ISO-8859-1\n",
"doctree": "<document source=\"test data\">\n <meta content=\"text/html; charset=ISO-8859-1\" http-equiv=\"Content-Type\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_meta.py",
"group": "meta",
"index": 3,
"line": 70,
"rst": ".. meta::\n :name: content\n over multiple lines\n",
"doctree": "<document source=\"test data\">\n <meta content=\"content over multiple lines\" name=\"name\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_meta.py",
"group": "meta",
"index": 4,
"line": 79,
"rst": "Paragraph\n\n.. meta::\n :name: content\n",
"doctree": "<document source=\"test data\">\n <meta content=\"content\" name=\"name\">\n <paragraph>\n Paragraph\n",
"asserts_error": false
},
{
"file": "test_directives/test_meta.py",
"group": "meta",
"index": 5,
"line": 91,
"rst": ".. meta::\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Content block expected for the \"meta\" directive; none found.\n <literal_block xml:space=\"preserve\">\n .. meta::\n",
"asserts_error": true
},
{
"file": "test_directives/test_meta.py",
"group": "meta",
"index": 6,
"line": 102,
"rst": ".. meta::\n :empty:\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"1\" line=\"2\" source=\"test data\" type=\"INFO\">\n <paragraph>\n No content for meta tag \"empty\".\n <literal_block xml:space=\"preserve\">\n :empty:\n",
"asserts_error": true
},
{
"file": "test_directives/test_meta.py",
"group": "meta",
"index": 7,
"line": 114,
"rst": ".. meta::\n not a field list\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Invalid meta directive.\n <literal_block xml:space=\"preserve\">\n .. meta::\n not a field list\n",
"asserts_error": true
},
{
"file": "test_directives/test_meta.py",
"group": "meta",
"index": 8,
"line": 127,
"rst": ".. meta::\n :name: content\n not a field\n :name: content\n",
"doctree": "<document source=\"test data\">\n <meta content=\"content\" name=\"name\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Invalid meta directive.\n <literal_block xml:space=\"preserve\">\n .. meta::\n :name: content\n not a field\n :name: content\n",
"asserts_error": true
},
{
"file": "test_directives/test_meta.py",
"group": "meta",
"index": 9,
"line": 145,
"rst": ".. meta::\n :name: content\n :name: content\n not a field\n",
"doctree": "<document source=\"test data\">\n <meta content=\"content\" name=\"name\">\n <meta content=\"content\" name=\"name\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Invalid meta directive.\n <literal_block xml:space=\"preserve\">\n .. meta::\n :name: content\n :name: content\n not a field\n",
"asserts_error": true
},
{
"file": "test_directives/test_meta.py",
"group": "meta",
"index": 10,
"line": 164,
"rst": ".. meta::\n :name notattval: content\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"2\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error parsing meta tag attribute \"notattval\": missing \"=\".\n <literal_block xml:space=\"preserve\">\n :name notattval: content\n",
"asserts_error": true
},
{
"file": "test_directives/test_meta.py",
"group": "meta",
"index": 11,
"line": 176,
"rst": "\n.. meta::\n :name\\:with\\:colons: escaped line\\\n break\n :unescaped:embedded:colons: content\n",
"doctree": "<document source=\"test data\">\n <meta content=\"escaped linebreak\" name=\"name:with:colons\">\n <meta content=\"content\" name=\"unescaped:embedded:colons\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_parsed_literals.py",
"group": "parsed_literals",
"index": 0,
"line": 42,
"rst": ".. parsed-literal::\n\n This is a parsed literal block.\n It may contain *inline markup\n spanning lines.*\n",
"doctree": "<document source=\"test data\">\n <literal_block xml:space=\"preserve\">\n This is a parsed literal block.\n It may contain \n <emphasis>\n inline markup\n spanning lines.\n",
"asserts_error": false
},
{
"file": "test_directives/test_parsed_literals.py",
"group": "parsed_literals",
"index": 1,
"line": 58,
"rst": ".. parsed-literal::\n :class: myliteral\n :name: example: parsed\n\n This is a parsed literal block with options.\n",
"doctree": "<document source=\"test data\">\n <literal_block classes=\"myliteral\" ids=\"example-parsed\" names=\"example:\\ parsed\" xml:space=\"preserve\">\n This is a parsed literal block with options.\n",
"asserts_error": false
},
{
"file": "test_directives/test_parsed_literals.py",
"group": "parsed_literals",
"index": 2,
"line": 70,
"rst": ".. parsed-literal:: content may start on same line\n",
"doctree": "<document source=\"test data\">\n <literal_block xml:space=\"preserve\">\n content may start on same line\n",
"asserts_error": false
},
{
"file": "test_directives/test_parsed_literals.py",
"group": "parsed_literals",
"index": 3,
"line": 78,
"rst": ".. parsed-literal::\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Content block expected for the \"parsed-literal\" directive; none found.\n <literal_block xml:space=\"preserve\">\n .. parsed-literal::\n",
"asserts_error": true
},
{
"file": "test_directives/test_raw.py",
"group": "raw",
"index": 0,
"line": 57,
"rst": ".. raw:: html\n\n <span>This is some plain old raw text.</span>\n",
"doctree": "<document source=\"test data\">\n <raw format=\"html\" xml:space=\"preserve\">\n <span>This is some plain old raw text.</span>\n",
"asserts_error": false
},
{
"file": "test_directives/test_raw.py",
"group": "raw",
"index": 2,
"line": 76,
"rst": ".. raw:: html\n :file: rawfile.html\n :url: http://example.org/\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n The \"file\" and \"url\" options may not be simultaneously specified for the \"raw\" directive.\n <literal_block xml:space=\"preserve\">\n .. raw:: html\n :file: rawfile.html\n :url: http://example.org/\n",
"asserts_error": true
},
{
"file": "test_directives/test_raw.py",
"group": "raw",
"index": 3,
"line": 91,
"rst": ".. raw:: html\n :file: rawfile.html\n\n <p>Can't have both content and file attribute.</p>\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n \"raw\" directive may not both specify an external file and have content.\n <literal_block xml:space=\"preserve\">\n .. raw:: html\n :file: rawfile.html\n \n <p>Can't have both content and file attribute.</p>\n",
"asserts_error": true
},
{
"file": "test_directives/test_raw.py",
"group": "raw",
"index": 4,
"line": 108,
"rst": "\n.. raw:: latex html\n\n \\[ \\sum_{n=1}^\\infty \\frac{1}{n} \\text{ etc.} \\]\n",
"doctree": "<document source=\"test data\">\n <raw format=\"latex html\" xml:space=\"preserve\">\n \\[ \\sum_{n=1}^\\infty \\frac{1}{n} \\text{ etc.} \\]\n",
"asserts_error": false
},
{
"file": "test_directives/test_raw.py",
"group": "raw",
"index": 8,
"line": 161,
"rst": ".. raw:: html\n :encoding: utf-8\n\n Should the parser complain becauße there is no :file:? BUG?\n",
"doctree": "<document source=\"test data\">\n <raw format=\"html\" xml:space=\"preserve\">\n Should the parser complain becauße there is no :file:? BUG?\n",
"asserts_error": false
},
{
"file": "test_directives/test_raw.py",
"group": "raw",
"index": 9,
"line": 172,
"rst": ".. raw:: html\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Content block expected for the \"raw\" directive; none found.\n <literal_block xml:space=\"preserve\">\n .. raw:: html\n",
"asserts_error": true
},
{
"file": "test_directives/test_raw.py",
"group": "raw",
"index": 10,
"line": 183,
"rst": ".. raw:: html\n :file: non-existent.file\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"4\" line=\"1\" source=\"test data\" type=\"SEVERE\">\n <paragraph>\n Problems with \"raw\" directive path:\n InputError: [Errno 2] No such file or directory: 'non-existent.file'.\n <literal_block xml:space=\"preserve\">\n .. raw:: html\n :file: non-existent.file\n",
"asserts_error": true
},
{
"file": "test_directives/test_replace.py",
"group": "replace",
"index": 0,
"line": 42,
"rst": "Test the |name| directive.\n\n.. |name| replace:: \"**replace**\"\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Test the \n <substitution_reference refname=\"name\">\n name\n directive.\n <substitution_definition names=\"name\">\n \"\n <strong>\n replace\n \"\n",
"asserts_error": false
},
{
"file": "test_directives/test_replace.py",
"group": "replace",
"index": 1,
"line": 60,
"rst": ".. |name| replace:: paragraph 1\n\n paragraph 2\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"replace\" directive: may contain a single paragraph only.\n <system_message level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Substitution definition \"name\" empty or invalid.\n <literal_block xml:space=\"preserve\">\n .. |name| replace:: paragraph 1\n \n paragraph 2\n",
"asserts_error": true
},
{
"file": "test_directives/test_replace.py",
"group": "replace",
"index": 2,
"line": 78,
"rst": ".. |name| replace::\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Content block expected for the \"replace\" directive; none found.\n <literal_block xml:space=\"preserve\">\n replace::\n <system_message level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Substitution definition \"name\" empty or invalid.\n <literal_block xml:space=\"preserve\">\n .. |name| replace::\n",
"asserts_error": true
},
{
"file": "test_directives/test_replace.py",
"group": "replace",
"index": 3,
"line": 94,
"rst": ".. |Python| replace:: Python, *the* best language around\n\n.. _Python: http://www.python.org/\n\nI recommend you try |Python|_.\n",
"doctree": "<document source=\"test data\">\n <substitution_definition names=\"Python\">\n Python, \n <emphasis>\n the\n best language around\n <target ids=\"python\" names=\"python\" refuri=\"http://www.python.org/\">\n <paragraph>\n I recommend you try \n <reference refname=\"python\">\n <substitution_reference refname=\"Python\">\n Python\n .\n",
"asserts_error": false
},
{
"file": "test_directives/test_replace.py",
"group": "replace",
"index": 4,
"line": 116,
"rst": ".. |name| replace:: *error in **inline ``markup\n",
"doctree": "<document source=\"test data\">\n <system_message ids=\"system-message-1\" level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline emphasis start-string without end-string.\n <system_message ids=\"system-message-2\" level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline strong start-string without end-string.\n <system_message ids=\"system-message-3\" level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline literal start-string without end-string.\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Substitution definition contains illegal element <problematic>:\n <literal_block xml:space=\"preserve\">\n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n *\n <literal_block xml:space=\"preserve\">\n .. |name| replace:: *error in **inline ``markup\n",
"asserts_error": true
},
{
"file": "test_directives/test_replace.py",
"group": "replace",
"index": 5,
"line": 139,
"rst": ".. replace:: not valid outside of a substitution definition\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Invalid context: the \"replace\" directive can only be used within a substitution definition.\n <literal_block xml:space=\"preserve\">\n .. replace:: not valid outside of a substitution definition\n",
"asserts_error": true
},
{
"file": "test_directives/test_replace_fr.py",
"group": "replace",
"index": 0,
"line": 44,
"rst": "Test directive containing french role exposant (superscript).\n\n.. |Na+| remplace:: Na\\ :exp:`+`\n\nLe |Na+| est l'ion sodium.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Test directive containing french role exposant (superscript).\n <substitution_definition names=\"Na+\">\n Na\n <superscript>\n +\n <paragraph>\n Le \n <substitution_reference refname=\"Na+\">\n Na+\n est l'ion sodium.\n",
"asserts_error": false
},
{
"file": "test_directives/test_replace_fr.py",
"group": "replace",
"index": 1,
"line": 65,
"rst": "Test directive containing english role superscript.\n\n.. |Na+| remplace:: Na\\ :sup:`+`\n\nLe |Na+| est l'ion sodium.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Test directive containing english role superscript.\n <system_message level=\"1\" line=\"3\" source=\"test data\" type=\"INFO\">\n <paragraph>\n No role entry for \"sup\" in module \"docutils.parsers.rst.languages.fr\".\n Using English fallback for role \"sup\".\n <substitution_definition names=\"Na+\">\n Na\n <superscript>\n +\n <paragraph>\n Le \n <substitution_reference refname=\"Na+\">\n Na+\n est l'ion sodium.\n",
"asserts_error": true
},
{
"file": "test_directives/test_role.py",
"group": "role",
"index": 0,
"line": 47,
"rst": ".. role:: custom\n.. role:: special\n\n:custom:`interpreted` and :special:`interpreted`\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <inline classes=\"custom\">\n interpreted\n and \n <inline classes=\"special\">\n interpreted\n",
"asserts_error": false
},
{
"file": "test_directives/test_role.py",
"group": "role",
"index": 1,
"line": 62,
"rst": ".. role:: custom\n :class: custom-class\n.. role:: special\n :class: special-class\n\n:custom:`interpreted` and :special:`interpreted`\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <inline classes=\"custom-class\">\n interpreted\n and \n <inline classes=\"special-class\">\n interpreted\n",
"asserts_error": false
},
{
"file": "test_directives/test_role.py",
"group": "role",
"index": 2,
"line": 79,
"rst": "Must define :custom:`interpreted` before using it.\n\n.. role:: custom\n\nNow that it's defined, :custom:`interpreted` works.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Must define \n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n :custom:`interpreted`\n before using it.\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n No role entry for \"custom\" in module \"docutils.parsers.rst.languages.en\".\n Trying \"custom\" as canonical role name.\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Unknown interpreted text role \"custom\".\n <paragraph>\n Now that it's defined, \n <inline classes=\"custom\">\n interpreted\n works.\n",
"asserts_error": true
},
{
"file": "test_directives/test_role.py",
"group": "role",
"index": 3,
"line": 106,
"rst": ".. role:: custom(emphasis)\n\n:custom:`text`\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <emphasis classes=\"custom\">\n text\n",
"asserts_error": false
},
{
"file": "test_directives/test_role.py",
"group": "role",
"index": 4,
"line": 117,
"rst": ".. role:: custom ( emphasis )\n\n:custom:`text`\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <emphasis classes=\"custom\">\n text\n",
"asserts_error": false
},
{
"file": "test_directives/test_role.py",
"group": "role",
"index": 5,
"line": 128,
"rst": ".. role:: custom(emphasis)\n :class: special\n\n:custom:`text`\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <emphasis classes=\"special\">\n text\n",
"asserts_error": false
},
{
"file": "test_directives/test_role.py",
"group": "role",
"index": 6,
"line": 140,
"rst": ".. role:: custom(unknown-role)\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n No role entry for \"unknown-role\" in module \"docutils.parsers.rst.languages.en\".\n Trying \"unknown-role\" as canonical role name.\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Unknown interpreted text role \"unknown-role\".\n <literal_block xml:space=\"preserve\">\n .. role:: custom(unknown-role)\n",
"asserts_error": true
},
{
"file": "test_directives/test_role.py",
"group": "role",
"index": 7,
"line": 155,
"rst": ".. role:: custom\n :class: 1\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"role\" directive:\n invalid option value: (option: \"class\"; value: '1')\n cannot make \"1\" into a class name.\n <literal_block xml:space=\"preserve\">\n .. role:: custom\n :class: 1\n",
"asserts_error": true
},
{
"file": "test_directives/test_role.py",
"group": "role",
"index": 8,
"line": 170,
"rst": ".. role:: 1\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Invalid argument for \"role\" directive:\n cannot make \"1\" into a class name.\n <literal_block xml:space=\"preserve\">\n .. role:: 1\n",
"asserts_error": true
},
{
"file": "test_directives/test_role.py",
"group": "role",
"index": 9,
"line": 182,
"rst": ".. role:: (error)\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n \"role\" directive arguments not valid role names: \"(error)\".\n <literal_block xml:space=\"preserve\">\n .. role:: (error)\n",
"asserts_error": true
},
{
"file": "test_directives/test_role.py",
"group": "role",
"index": 10,
"line": 193,
"rst": ".. role::\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n \"role\" directive requires arguments on the first line.\n <literal_block xml:space=\"preserve\">\n .. role::\n",
"asserts_error": true
},
{
"file": "test_directives/test_role.py",
"group": "role",
"index": 11,
"line": 204,
"rst": "Test\n----\n\n.. role:: fileref(emphasis)\n\nTesting a :fileref:`role` in a nested parse.\n",
"doctree": "<document source=\"test data\">\n <section ids=\"test\" names=\"test\">\n <title>\n Test\n <paragraph>\n Testing a \n <emphasis classes=\"fileref\">\n role\n in a nested parse.\n",
"asserts_error": false
},
{
"file": "test_directives/test_role.py",
"group": "role",
"index": 12,
"line": 223,
"rst": ".. role:: custom\n.. role:: special\n\nEmpty :custom:`\\ ` and empty `\\ `:special:\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Empty \n <inline classes=\"custom\">\n and empty \n <inline classes=\"special\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_role.py",
"group": "role",
"index": 13,
"line": 237,
"rst": ".. role:: CaSiNg\n\nRole names are :cAsInG:`case-insensitive`.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Role names are \n <inline classes=\"casing\">\n case-insensitive\n .\n",
"asserts_error": false
},
{
"file": "test_directives/test_role.py",
"group": "raw_role",
"index": 0,
"line": 253,
"rst": ".. role:: html(raw)\n :format: html\n\nHere's some :html:`<i>raw HTML data</i>`.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Here's some \n <raw classes=\"html\" format=\"html\" xml:space=\"preserve\">\n <i>raw HTML data</i>\n .\n",
"asserts_error": false
},
{
"file": "test_directives/test_role.py",
"group": "raw_role",
"index": 1,
"line": 267,
"rst": ".. role:: itex(raw)\n :format: latex html\n\nHere's some itex markup: :itex:`$x^\\infty$`.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Here's some itex markup: \n <raw classes=\"itex\" format=\"latex html\" xml:space=\"preserve\">\n $x^\\infty$\n .\n",
"asserts_error": false
},
{
"file": "test_directives/test_role.py",
"group": "raw_role",
"index": 2,
"line": 281,
"rst": "Can't use the :raw:`role` directly.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Can't use the \n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n :raw:`role`\n directly.\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n No format (Writer name) is associated with this role: \"raw\".\n The \"raw\" role cannot be used directly.\n Instead, use the \"role\" directive to create a new role with an associated format.\n",
"asserts_error": true
},
{
"file": "test_directives/test_rubrics.py",
"group": "rubrics",
"index": 0,
"line": 42,
"rst": ".. rubric:: This is a rubric\n",
"doctree": "<document source=\"test data\">\n <rubric>\n This is a rubric\n",
"asserts_error": false
},
{
"file": "test_directives/test_rubrics.py",
"group": "rubrics",
"index": 1,
"line": 50,
"rst": ".. rubric::\n.. rubric:: A rubric has no content\n\n Invalid content\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"rubric\" directive:\n 1 argument(s) required, 0 supplied.\n <literal_block xml:space=\"preserve\">\n .. rubric::\n <system_message level=\"3\" line=\"2\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"rubric\" directive:\n no content permitted.\n <literal_block xml:space=\"preserve\">\n .. rubric:: A rubric has no content\n \n Invalid content\n",
"asserts_error": true
},
{
"file": "test_directives/test_rubrics.py",
"group": "rubrics",
"index": 2,
"line": 73,
"rst": ".. rubric:: A rubric followed by a block quote\n..\n\n Block quote\n",
"doctree": "<document source=\"test data\">\n <rubric>\n A rubric followed by a block quote\n <comment xml:space=\"preserve\">\n <block_quote>\n <paragraph>\n Block quote\n",
"asserts_error": false
},
{
"file": "test_directives/test_rubrics.py",
"group": "rubrics",
"index": 3,
"line": 88,
"rst": ".. rubric:: A Rubric\n :class: foo bar\n :name: Foo Rubric\n",
"doctree": "<document source=\"test data\">\n <rubric classes=\"foo bar\" ids=\"foo-rubric\" names=\"foo\\ rubric\">\n A Rubric\n",
"asserts_error": false
},
{
"file": "test_directives/test_sectnum.py",
"group": "sectnum",
"index": 0,
"line": 42,
"rst": ".. sectnum::\n",
"doctree": "<document source=\"test data\">\n <pending>\n .. internal attributes:\n .transform: docutils.transforms.parts.SectNum\n .details:\n",
"asserts_error": false
},
{
"file": "test_directives/test_sectnum.py",
"group": "sectnum",
"index": 1,
"line": 52,
"rst": ".. sectnum::\n :depth: 23\n :start: 42\n :prefix: A Prefix\n :suffix: A Suffix\n",
"doctree": "<document source=\"test data\">\n <pending>\n .. internal attributes:\n .transform: docutils.transforms.parts.SectNum\n .details:\n depth: 23\n prefix: 'A Prefix'\n start: 42\n suffix: 'A Suffix'\n",
"asserts_error": false
},
{
"file": "test_directives/test_sidebars.py",
"group": "sidebars",
"index": 0,
"line": 42,
"rst": ".. sidebar:: Outer\n\n .. sidebar:: Nested\n\n Body.\n",
"doctree": "<document source=\"test data\">\n <sidebar>\n <title>\n Outer\n <system_message level=\"3\" line=\"3\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n The \"sidebar\" directive may not be used within a sidebar element.\n <literal_block xml:space=\"preserve\">\n .. sidebar:: Nested\n \n Body.\n",
"asserts_error": true
},
{
"file": "test_directives/test_sidebars.py",
"group": "sidebars",
"index": 1,
"line": 62,
"rst": ".. sidebar:: Margin Notes\n :subtitle: with options\n :class: margin\n :name: note:Options\n\n Body.\n",
"doctree": "<document source=\"test data\">\n <sidebar classes=\"margin\" ids=\"note-options\" names=\"note:options\">\n <title>\n Margin Notes\n <subtitle>\n with options\n <paragraph>\n Body.\n",
"asserts_error": false
},
{
"file": "test_directives/test_sidebars.py",
"group": "sidebars",
"index": 2,
"line": 80,
"rst": ".. sidebar::\n\n The title is optional.\n",
"doctree": "<document source=\"test data\">\n <sidebar>\n <paragraph>\n The title is optional.\n",
"asserts_error": false
},
{
"file": "test_directives/test_sidebars.py",
"group": "sidebars",
"index": 3,
"line": 91,
"rst": ".. sidebar:: Outer\n\n .. topic:: Topic\n\n .. sidebar:: Inner\n\n text\n",
"doctree": "<document source=\"test data\">\n <sidebar>\n <title>\n Outer\n <topic>\n <title>\n Topic\n <system_message level=\"3\" line=\"5\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n The \"sidebar\" directive may not be used within topics or body elements.\n <literal_block xml:space=\"preserve\">\n .. sidebar:: Inner\n \n text\n",
"asserts_error": true
},
{
"file": "test_directives/test_tables.py",
"group": "table",
"index": 0,
"line": 176,
"rst": ".. table:: Truth table for \"not\"\n :class: custom\n :name: tab:truth.not\n\n ===== =====\n A not A\n ===== =====\n False True\n True False\n ===== =====\n",
"doctree": "<document source=\"test data\">\n <table classes=\"custom\" ids=\"tab-truth-not\" names=\"tab:truth.not\">\n <title>\n Truth table for \"not\"\n <tgroup cols=\"2\">\n <colspec colwidth=\"5\">\n <colspec colwidth=\"5\">\n <thead>\n <row>\n <entry>\n <paragraph>\n A\n <entry>\n <paragraph>\n not A\n <tbody>\n <row>\n <entry>\n <paragraph>\n False\n <entry>\n <paragraph>\n True\n <row>\n <entry>\n <paragraph>\n True\n <entry>\n <paragraph>\n False\n",
"asserts_error": false
},
{
"file": "test_directives/test_tables.py",
"group": "table",
"index": 1,
"line": 220,
"rst": ".. table::\n\n ========== ==========\n Table without\n a title\n ========== ==========\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"2\">\n <colspec colwidth=\"10\">\n <colspec colwidth=\"10\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n Table\n <entry>\n <paragraph>\n without\n <row>\n <entry>\n <paragraph>\n a\n <entry>\n <paragraph>\n title\n",
"asserts_error": false
},
{
"file": "test_directives/test_tables.py",
"group": "table",
"index": 2,
"line": 250,
"rst": ".. table:: title with an *error\n\n ====== =====\n Simple table\n ====== =====\n",
"doctree": "<document source=\"test data\">\n <table>\n <title>\n title with an \n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n *\n error\n <tgroup cols=\"2\">\n <colspec colwidth=\"6\">\n <colspec colwidth=\"5\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n Simple\n <entry>\n <paragraph>\n table\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline emphasis start-string without end-string.\n",
"asserts_error": true
},
{
"file": "test_directives/test_tables.py",
"group": "table",
"index": 3,
"line": 280,
"rst": ".. table:: Not a table.\n\n This is a paragraph.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error parsing content block for the \"table\" directive: exactly one table expected.\n <literal_block xml:space=\"preserve\">\n .. table:: Not a table.\n \n This is a paragraph.\n",
"asserts_error": true
},
{
"file": "test_directives/test_tables.py",
"group": "table",
"index": 4,
"line": 295,
"rst": ".. table:: empty\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Content block expected for the \"table\" directive; none found.\n <literal_block xml:space=\"preserve\">\n .. table:: empty\n",
"asserts_error": true
},
{
"file": "test_directives/test_tables.py",
"group": "table",
"index": 5,
"line": 306,
"rst": ".. table::\n :width: 100 %\n\n ============ ==============\n col 1 col 2\n ============ ==============\n",
"doctree": "<document source=\"test data\">\n <table width=\"100%\">\n <tgroup cols=\"2\">\n <colspec colwidth=\"12\">\n <colspec colwidth=\"14\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n col 1\n <entry>\n <paragraph>\n col 2\n",
"asserts_error": false
},
{
"file": "test_directives/test_tables.py",
"group": "table",
"index": 6,
"line": 329,
"rst": ".. table::\n :width: 100px\n\n ============ ==============\n col 1 col 2\n ============ ==============\n",
"doctree": "<document source=\"test data\">\n <table width=\"100px\">\n <tgroup cols=\"2\">\n <colspec colwidth=\"12\">\n <colspec colwidth=\"14\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n col 1\n <entry>\n <paragraph>\n col 2\n",
"asserts_error": false
},
{
"file": "test_directives/test_tables.py",
"group": "table",
"index": 7,
"line": 352,
"rst": ".. table::\n :width: 321\n\n ============ ==============\n col 1 col 2\n ============ ==============\n",
"doctree": "<document source=\"test data\">\n <table width=\"321\">\n <tgroup cols=\"2\">\n <colspec colwidth=\"12\">\n <colspec colwidth=\"14\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n col 1\n <entry>\n <paragraph>\n col 2\n",
"asserts_error": false
},
{
"file": "test_directives/test_tables.py",
"group": "table",
"index": 8,
"line": 375,
"rst": ".. table::\n :widths: 15, 25\n\n ============ ==============\n Columns with custom widths.\n ============ ==============\n",
"doctree": "<document source=\"test data\">\n <table classes=\"colwidths-given\">\n <tgroup cols=\"2\">\n <colspec colwidth=\"15\">\n <colspec colwidth=\"25\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n Columns with\n <entry>\n <paragraph>\n custom widths.\n",
"asserts_error": false
},
{
"file": "test_directives/test_tables.py",
"group": "table",
"index": 9,
"line": 398,
"rst": ".. table::\n :widths: 10, 20\n\n +--------------+----------------+\n | Columns with | custom widths. |\n +--------------+----------------+\n",
"doctree": "<document source=\"test data\">\n <table classes=\"colwidths-given\">\n <tgroup cols=\"2\">\n <colspec colwidth=\"10\">\n <colspec colwidth=\"20\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n Columns with\n <entry>\n <paragraph>\n custom widths.\n",
"asserts_error": false
},
{
"file": "test_directives/test_tables.py",
"group": "table",
"index": 10,
"line": 421,
"rst": ".. table::\n :widths: auto\n\n +--------------+-------------------+\n | Columns with | automatic widths. |\n +--------------+-------------------+\n",
"doctree": "<document source=\"test data\">\n <table classes=\"colwidths-auto\">\n <tgroup cols=\"2\">\n <colspec colwidth=\"14\">\n <colspec colwidth=\"19\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n Columns with\n <entry>\n <paragraph>\n automatic widths.\n",
"asserts_error": false
},
{
"file": "test_directives/test_tables.py",
"group": "table",
"index": 11,
"line": 444,
"rst": ".. table::\n :widths: grid\n\n +--------------+-------------------+\n | Columns with | automatic widths. |\n +--------------+-------------------+\n",
"doctree": "<document source=\"test data\">\n <table classes=\"colwidths-given\">\n <tgroup cols=\"2\">\n <colspec colwidth=\"14\">\n <colspec colwidth=\"19\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n Columns with\n <entry>\n <paragraph>\n automatic widths.\n",
"asserts_error": false
},
{
"file": "test_directives/test_tables.py",
"group": "table",
"index": 12,
"line": 467,
"rst": ".. table::\n :align: center\n\n ====== =====\n Simple table\n ====== =====\n",
"doctree": "<document source=\"test data\">\n <table align=\"center\">\n <tgroup cols=\"2\">\n <colspec colwidth=\"6\">\n <colspec colwidth=\"5\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n Simple\n <entry>\n <paragraph>\n table\n",
"asserts_error": false
},
{
"file": "test_directives/test_tables.py",
"group": "csv_table",
"index": 0,
"line": 493,
"rst": ".. csv-table:: inline with integral header\n :width: 80%\n :widths: 10, 20, 30\n :header-rows: 1\n :stub-columns: 1\n\n \"Treat\", \"Quantity\", \"Description\"\n \"Albatross\", 2.99, \"On a stick!\"\n \"Crunchy Frog\", 1.49, \"If we took the bones out, it wouldn't be\n crunchy, now would it?\"\n \"Gannet Ripple\", 1.99, \"On a stick!\"\n",
"doctree": "<document source=\"test data\">\n <table classes=\"colwidths-given\" width=\"80%\">\n <title>\n inline with integral header\n <tgroup cols=\"3\">\n <colspec colwidth=\"10\" stub=\"1\">\n <colspec colwidth=\"20\">\n <colspec colwidth=\"30\">\n <thead>\n <row>\n <entry>\n <paragraph>\n Treat\n <entry>\n <paragraph>\n Quantity\n <entry>\n <paragraph>\n Description\n <tbody>\n <row>\n <entry>\n <paragraph>\n Albatross\n <entry>\n <paragraph>\n 2.99\n <entry>\n <paragraph>\n On a stick!\n <row>\n <entry>\n <paragraph>\n Crunchy Frog\n <entry>\n <paragraph>\n 1.49\n <entry>\n <paragraph>\n If we took the bones out, it wouldn't be\n crunchy, now would it?\n <row>\n <entry>\n <paragraph>\n Gannet Ripple\n <entry>\n <paragraph>\n 1.99\n <entry>\n <paragraph>\n On a stick!\n",
"asserts_error": false
},
{
"file": "test_directives/test_tables.py",
"group": "csv_table",
"index": 1,
"line": 559,
"rst": ".. csv-table:: inline with separate header\n :delim: space\n :header: \"Treat\" Quantity \"Description\"\n :widths: 10,20,30\n\n \"Albatross\" 2.99 \"On a stick!\"\n",
"doctree": "<document source=\"test data\">\n <table classes=\"colwidths-given\">\n <title>\n inline with separate header\n <tgroup cols=\"3\">\n <colspec colwidth=\"10\">\n <colspec colwidth=\"20\">\n <colspec colwidth=\"30\">\n <thead>\n <row>\n <entry>\n <paragraph>\n Treat\n <entry>\n <paragraph>\n Quantity\n <entry>\n <paragraph>\n Description\n <tbody>\n <row>\n <entry>\n <paragraph>\n Albatross\n <entry>\n <paragraph>\n 2.99\n <entry>\n <paragraph>\n On a stick!\n",
"asserts_error": false
},
{
"file": "test_directives/test_tables.py",
"group": "csv_table",
"index": 2,
"line": 599,
"rst": ".. csv-table:: complex internal structure\n :header: \"Treat\", Quantity, \"\n * Description,\n * Definition, or\n * Narrative\"\n\n \"\n * Ice cream\n * Sorbet\n * Albatross\", 2.99, \"On a stick!\"\n",
"doctree": "<document source=\"test data\">\n <table>\n <title>\n complex internal structure\n <tgroup cols=\"3\">\n <colspec colwidth=\"33\">\n <colspec colwidth=\"33\">\n <colspec colwidth=\"33\">\n <thead>\n <row>\n <entry>\n <paragraph>\n Treat\n <entry>\n <paragraph>\n Quantity\n <entry>\n <bullet_list bullet=\"*\">\n <list_item>\n <paragraph>\n Description,\n <list_item>\n <paragraph>\n Definition, or\n <list_item>\n <paragraph>\n Narrative\n <tbody>\n <row>\n <entry>\n <bullet_list bullet=\"*\">\n <list_item>\n <paragraph>\n Ice cream\n <list_item>\n <paragraph>\n Sorbet\n <list_item>\n <paragraph>\n Albatross\n <entry>\n <paragraph>\n 2.99\n <entry>\n <paragraph>\n On a stick!\n",
"asserts_error": false
},
{
"file": "test_directives/test_tables.py",
"group": "csv_table",
"index": 3,
"line": 659,
"rst": ".. csv-table:: short rows\n\n one, 2, three\n 4, five\n",
"doctree": "<document source=\"test data\">\n <table>\n <title>\n short rows\n <tgroup cols=\"3\">\n <colspec colwidth=\"33\">\n <colspec colwidth=\"33\">\n <colspec colwidth=\"33\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n one\n <entry>\n <paragraph>\n 2\n <entry>\n <paragraph>\n three\n <row>\n <entry>\n <paragraph>\n 4\n <entry>\n <paragraph>\n five\n <entry>\n",
"asserts_error": false
},
{
"file": "test_directives/test_tables.py",
"group": "csv_table",
"index": 4,
"line": 694,
"rst": ".. csv-table:: short rows\n :header-rows: 1\n\n header col 1, header col 2\n one, 2, three\n 4\n",
"doctree": "<document source=\"test data\">\n <table>\n <title>\n short rows\n <tgroup cols=\"3\">\n <colspec colwidth=\"33\">\n <colspec colwidth=\"33\">\n <colspec colwidth=\"33\">\n <thead>\n <row>\n <entry>\n <paragraph>\n header col 1\n <entry>\n <paragraph>\n header col 2\n <entry>\n <tbody>\n <row>\n <entry>\n <paragraph>\n one\n <entry>\n <paragraph>\n 2\n <entry>\n <paragraph>\n three\n <row>\n <entry>\n <paragraph>\n 4\n <entry>\n <entry>\n",
"asserts_error": false
},
{
"file": "test_directives/test_tables.py",
"group": "csv_table",
"index": 5,
"line": 738,
"rst": ".. csv-table:: non-ASCII characters\n\n Heizölrückstoßabdämpfung\n",
"doctree": "<document source=\"test data\">\n <table>\n <title>\n non-ASCII characters\n <tgroup cols=\"1\">\n <colspec colwidth=\"100\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n Heizölrückstoßabdämpfung\n",
"asserts_error": false
},
{
"file": "test_directives/test_tables.py",
"group": "csv_table",
"index": 6,
"line": 756,
"rst": ".. csv-table:: center aligned\n :align: center\n\n 11, 12\n 21, 22\n",
"doctree": "<document source=\"test data\">\n <table align=\"center\">\n <title>\n center aligned\n <tgroup cols=\"2\">\n <colspec colwidth=\"50\">\n <colspec colwidth=\"50\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n 11\n <entry>\n <paragraph>\n 12\n <row>\n <entry>\n <paragraph>\n 21\n <entry>\n <paragraph>\n 22\n",
"asserts_error": false
},
{
"file": "test_directives/test_tables.py",
"group": "csv_table",
"index": 7,
"line": 787,
"rst": ".. csv-table:: empty\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n The \"csv-table\" directive requires content; none supplied.\n <literal_block xml:space=\"preserve\">\n .. csv-table:: empty\n",
"asserts_error": true
},
{
"file": "test_directives/test_tables.py",
"group": "csv_table",
"index": 8,
"line": 798,
"rst": ".. csv-table:: insufficient header row data\n :header-rows: 2\n\n some, csv, data\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n 2 header row(s) specified but only 1 row(s) of data supplied (\"csv-table\" directive).\n <literal_block xml:space=\"preserve\">\n .. csv-table:: insufficient header row data\n :header-rows: 2\n \n some, csv, data\n",
"asserts_error": true
},
{
"file": "test_directives/test_tables.py",
"group": "csv_table",
"index": 9,
"line": 815,
"rst": ".. csv-table:: insufficient body data\n :header-rows: 1\n\n some, csv, data\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Insufficient data supplied (1 row(s)); no data remaining for table body, required by \"csv-table\" directive.\n <literal_block xml:space=\"preserve\">\n .. csv-table:: insufficient body data\n :header-rows: 1\n \n some, csv, data\n",
"asserts_error": true
},
{
"file": "test_directives/test_tables.py",
"group": "csv_table",
"index": 10,
"line": 832,
"rst": ".. csv-table:: content and external\n :file: bogus.csv\n\n some, csv, data\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n \"csv-table\" directive may not both specify an external file and have content.\n <literal_block xml:space=\"preserve\">\n .. csv-table:: content and external\n :file: bogus.csv\n \n some, csv, data\n",
"asserts_error": true
},
{
"file": "test_directives/test_tables.py",
"group": "csv_table",
"index": 11,
"line": 849,
"rst": ".. csv-table:: external file and url\n :file: bogus.csv\n :url: http://example.org/bogus.csv\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n The \"file\" and \"url\" options may not be simultaneously specified for the \"csv-table\" directive.\n <literal_block xml:space=\"preserve\">\n .. csv-table:: external file and url\n :file: bogus.csv\n :url: http://example.org/bogus.csv\n",
"asserts_error": true
},
{
"file": "test_directives/test_tables.py",
"group": "csv_table",
"index": 12,
"line": 864,
"rst": ".. csv-table:: error in the *title\n\n some, csv, data\n",
"doctree": "<document source=\"test data\">\n <table>\n <title>\n error in the \n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n *\n title\n <tgroup cols=\"3\">\n <colspec colwidth=\"33\">\n <colspec colwidth=\"33\">\n <colspec colwidth=\"33\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n some\n <entry>\n <paragraph>\n csv\n <entry>\n <paragraph>\n data\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline emphasis start-string without end-string.\n",
"asserts_error": true
},
{
"file": "test_directives/test_tables.py",
"group": "csv_table",
"index": 13,
"line": 896,
"rst": ".. csv-table:: no such file\n :file: bogus.csv\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"4\" line=\"1\" source=\"test data\" type=\"SEVERE\">\n <paragraph>\n Problems with \"csv-table\" directive path:\n [Errno 2] No such file or directory: 'bogus.csv'.\n <literal_block xml:space=\"preserve\">\n .. csv-table:: no such file\n :file: bogus.csv\n",
"asserts_error": true
},
{
"file": "test_directives/test_tables.py",
"group": "csv_table",
"index": 14,
"line": 911,
"rst": ".. csv-table:: bad URL\n :url: bogus.csv\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"4\" line=\"1\" source=\"test data\" type=\"SEVERE\">\n <paragraph>\n Problems with \"csv-table\" directive URL \"bogus.csv\":\n unknown url type: 'bogus.csv'.\n <literal_block xml:space=\"preserve\">\n .. csv-table:: bad URL\n :url: bogus.csv\n",
"asserts_error": true
},
{
"file": "test_directives/test_tables.py",
"group": "csv_table",
"index": 15,
"line": 925,
"rst": ".. csv-table:: column mismatch\n :widths: 10,20\n\n some, csv, data\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n \"csv-table\" widths do not match the number of columns in table (3).\n <literal_block xml:space=\"preserve\">\n .. csv-table:: column mismatch\n :widths: 10,20\n \n some, csv, data\n",
"asserts_error": true
},
{
"file": "test_directives/test_tables.py",
"group": "csv_table",
"index": 17,
"line": 976,
"rst": ".. csv-table:: good delimiter\n :delim: /\n\n some/csv/data\n\n.. csv-table:: good delimiter\n :delim: \\\n\n some\\csv\\data\n\n.. csv-table:: good delimiter\n :delim: 0x5c\n\n some\\csv\\data\n\n.. csv-table:: good delimiter\n :delim: space\n\n some csv data\n",
"doctree": "<document source=\"test data\">\n <table>\n <title>\n good delimiter\n <tgroup cols=\"3\">\n <colspec colwidth=\"33\">\n <colspec colwidth=\"33\">\n <colspec colwidth=\"33\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n some\n <entry>\n <paragraph>\n csv\n <entry>\n <paragraph>\n data\n <table>\n <title>\n good delimiter\n <tgroup cols=\"3\">\n <colspec colwidth=\"33\">\n <colspec colwidth=\"33\">\n <colspec colwidth=\"33\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n some\n <entry>\n <paragraph>\n csv\n <entry>\n <paragraph>\n data\n <table>\n <title>\n good delimiter\n <tgroup cols=\"3\">\n <colspec colwidth=\"33\">\n <colspec colwidth=\"33\">\n <colspec colwidth=\"33\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n some\n <entry>\n <paragraph>\n csv\n <entry>\n <paragraph>\n data\n <table>\n <title>\n good delimiter\n <tgroup cols=\"3\">\n <colspec colwidth=\"33\">\n <colspec colwidth=\"33\">\n <colspec colwidth=\"33\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n some\n <entry>\n <paragraph>\n csv\n <entry>\n <paragraph>\n data\n",
"asserts_error": false
},
{
"file": "test_directives/test_tables.py",
"group": "list_table",
"index": 0,
"line": 1274,
"rst": ".. list-table:: list table with integral header\n :widths: 10 20 30\n :header-rows: 1\n :stub-columns: 1\n\n * - Treat\n - Quantity\n - Description\n * - Albatross\n - 2.99\n - On a stick!\n * - Crunchy Frog\n - 1.49\n - If we took the bones out, it wouldn't be\n crunchy, now would it?\n * - Gannet Ripple\n - 1.99\n - On a stick!\n",
"doctree": "<document source=\"test data\">\n <table classes=\"colwidths-given\">\n <title>\n list table with integral header\n <tgroup cols=\"3\">\n <colspec colwidth=\"10\" stub=\"1\">\n <colspec colwidth=\"20\">\n <colspec colwidth=\"30\">\n <thead>\n <row>\n <entry>\n <paragraph>\n Treat\n <entry>\n <paragraph>\n Quantity\n <entry>\n <paragraph>\n Description\n <tbody>\n <row>\n <entry>\n <paragraph>\n Albatross\n <entry>\n <paragraph>\n 2.99\n <entry>\n <paragraph>\n On a stick!\n <row>\n <entry>\n <paragraph>\n Crunchy Frog\n <entry>\n <paragraph>\n 1.49\n <entry>\n <paragraph>\n If we took the bones out, it wouldn't be\n crunchy, now would it?\n <row>\n <entry>\n <paragraph>\n Gannet Ripple\n <entry>\n <paragraph>\n 1.99\n <entry>\n <paragraph>\n On a stick!\n",
"asserts_error": false
},
{
"file": "test_directives/test_tables.py",
"group": "list_table",
"index": 1,
"line": 1347,
"rst": ".. list-table:: list table with integral header\n :widths: auto\n :header-rows: 1\n :stub-columns: 1\n\n * - Treat\n - Quantity\n - Description\n * - Albatross\n - 2.99\n - On a stick!\n",
"doctree": "<document source=\"test data\">\n <table classes=\"colwidths-auto\">\n <title>\n list table with integral header\n <tgroup cols=\"3\">\n <colspec colwidth=\"33\" stub=\"1\">\n <colspec colwidth=\"33\">\n <colspec colwidth=\"33\">\n <thead>\n <row>\n <entry>\n <paragraph>\n Treat\n <entry>\n <paragraph>\n Quantity\n <entry>\n <paragraph>\n Description\n <tbody>\n <row>\n <entry>\n <paragraph>\n Albatross\n <entry>\n <paragraph>\n 2.99\n <entry>\n <paragraph>\n On a stick!\n",
"asserts_error": false
},
{
"file": "test_directives/test_tables.py",
"group": "list_table",
"index": 2,
"line": 1392,
"rst": ".. list-table:: list table with integral header\n :header-rows: 1\n :stub-columns: 1\n\n * - Treat\n - Quantity\n - Description\n * - Albatross\n - 2.99\n - On a stick!\n * - Crunchy Frog\n - 1.49\n - If we took the bones out, it wouldn't be\n crunchy, now would it?\n * - Gannet Ripple\n - 1.99\n - On a stick!\n",
"doctree": "<document source=\"test data\">\n <table>\n <title>\n list table with integral header\n <tgroup cols=\"3\">\n <colspec colwidth=\"33\" stub=\"1\">\n <colspec colwidth=\"33\">\n <colspec colwidth=\"33\">\n <thead>\n <row>\n <entry>\n <paragraph>\n Treat\n <entry>\n <paragraph>\n Quantity\n <entry>\n <paragraph>\n Description\n <tbody>\n <row>\n <entry>\n <paragraph>\n Albatross\n <entry>\n <paragraph>\n 2.99\n <entry>\n <paragraph>\n On a stick!\n <row>\n <entry>\n <paragraph>\n Crunchy Frog\n <entry>\n <paragraph>\n 1.49\n <entry>\n <paragraph>\n If we took the bones out, it wouldn't be\n crunchy, now would it?\n <row>\n <entry>\n <paragraph>\n Gannet Ripple\n <entry>\n <paragraph>\n 1.99\n <entry>\n <paragraph>\n On a stick!\n",
"asserts_error": false
},
{
"file": "test_directives/test_tables.py",
"group": "list_table",
"index": 3,
"line": 1464,
"rst": ".. list-table:: center aligned\n :align: center\n\n * - 11\n - 12\n * - 21\n - 22\n",
"doctree": "<document source=\"test data\">\n <table align=\"center\">\n <title>\n center aligned\n <tgroup cols=\"2\">\n <colspec colwidth=\"50\">\n <colspec colwidth=\"50\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n 11\n <entry>\n <paragraph>\n 12\n <row>\n <entry>\n <paragraph>\n 21\n <entry>\n <paragraph>\n 22\n",
"asserts_error": false
},
{
"file": "test_directives/test_tables.py",
"group": "list_table",
"index": 4,
"line": 1497,
"rst": ".. list-table::\n\n not a bullet list\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error parsing content block for the \"list-table\" directive: exactly one bullet list expected.\n <literal_block xml:space=\"preserve\">\n .. list-table::\n \n not a bullet list\n",
"asserts_error": true
},
{
"file": "test_directives/test_tables.py",
"group": "list_table",
"index": 5,
"line": 1512,
"rst": ".. list-table::\n\n * not a second-level bullet list\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error parsing content block for the \"list-table\" directive: two-level bullet list expected, but row 1 does not contain a second-level bullet list.\n <literal_block xml:space=\"preserve\">\n .. list-table::\n \n * not a second-level bullet list\n",
"asserts_error": true
},
{
"file": "test_directives/test_tables.py",
"group": "list_table",
"index": 6,
"line": 1527,
"rst": ".. list-table::\n\n * - columns not uniform\n * - first row has one,\n - second row has two\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error parsing content block for the \"list-table\" directive: uniform two-level bullet list expected, but row 2 does not contain the same number of items as row 1 (2 vs 1).\n <literal_block xml:space=\"preserve\">\n .. list-table::\n \n * - columns not uniform\n * - first row has one,\n - second row has two\n",
"asserts_error": true
},
{
"file": "test_directives/test_tables.py",
"group": "list_table",
"index": 7,
"line": 1546,
"rst": ".. list-table::\n :widths: 10 20\n\n * - \":widths:\" option doesn't match columns\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n \"list-table\" widths do not match the number of columns in table (1).\n <literal_block xml:space=\"preserve\">\n .. list-table::\n :widths: 10 20\n \n * - \":widths:\" option doesn't match columns\n",
"asserts_error": true
},
{
"file": "test_directives/test_tables.py",
"group": "list_table",
"index": 8,
"line": 1563,
"rst": ".. list-table::\n :stub-columns: 3\n\n * - column 1\n - column 2\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n 3 stub column(s) specified but only 2 columns(s) of data supplied (\"list-table\" directive).\n <literal_block xml:space=\"preserve\">\n .. list-table::\n :stub-columns: 3\n \n * - column 1\n - column 2\n",
"asserts_error": true
},
{
"file": "test_directives/test_tables.py",
"group": "list_table",
"index": 9,
"line": 1582,
"rst": ".. list-table::\n :stub-columns: 2\n\n * - column 1\n - column 2\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Insufficient data supplied (2 columns(s)); no data remaining for table body, required by \"list-table\" directive.\n <literal_block xml:space=\"preserve\">\n .. list-table::\n :stub-columns: 2\n \n * - column 1\n - column 2\n",
"asserts_error": true
},
{
"file": "test_directives/test_tables.py",
"group": "list_table",
"index": 10,
"line": 1601,
"rst": ".. list-table:: empty\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n The \"list-table\" directive is empty; content required.\n <literal_block xml:space=\"preserve\">\n .. list-table:: empty\n",
"asserts_error": true
},
{
"file": "test_directives/test_target_notes.py",
"group": "target_notes",
"index": 0,
"line": 42,
"rst": ".. target-notes::\n",
"doctree": "<document source=\"test data\">\n <pending>\n .. internal attributes:\n .transform: docutils.transforms.references.TargetNotes\n .details:\n",
"asserts_error": false
},
{
"file": "test_directives/test_target_notes.py",
"group": "target_notes",
"index": 1,
"line": 52,
"rst": ".. target-notes:: :class: custom\n",
"doctree": "<document source=\"test data\">\n <pending>\n .. internal attributes:\n .transform: docutils.transforms.references.TargetNotes\n .details:\n class: ['custom']\n",
"asserts_error": false
},
{
"file": "test_directives/test_target_notes.py",
"group": "target_notes",
"index": 2,
"line": 63,
"rst": ".. target-notes::\n :class: custom\n :name: targets\n",
"doctree": "<document source=\"test data\">\n <pending ids=\"targets\" names=\"targets\">\n .. internal attributes:\n .transform: docutils.transforms.references.TargetNotes\n .details:\n class: ['custom']\n",
"asserts_error": false
},
{
"file": "test_directives/test_target_notes.py",
"group": "target_notes",
"index": 3,
"line": 76,
"rst": ".. target-notes::\n :class:\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"target-notes\" directive:\n invalid option value: (option: \"class\"; value: None)\n argument required but none supplied.\n <literal_block xml:space=\"preserve\">\n .. target-notes::\n :class:\n",
"asserts_error": true
},
{
"file": "test_directives/test_test_directives.py",
"group": "test_directives",
"index": 0,
"line": 42,
"rst": ".. reStructuredText-test-directive::\n\nParagraph.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Directive processed. Type=\"reStructuredText-test-directive\", arguments=[], options={}, content: None\n <paragraph>\n Paragraph.\n",
"asserts_error": true
},
{
"file": "test_directives/test_test_directives.py",
"group": "test_directives",
"index": 1,
"line": 55,
"rst": ".. reStructuredText-test-directive ::\n\nAn optional space before the \"::\".\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Directive processed. Type=\"reStructuredText-test-directive\", arguments=[], options={}, content: None\n <paragraph>\n An optional space before the \"::\".\n",
"asserts_error": true
},
{
"file": "test_directives/test_test_directives.py",
"group": "test_directives",
"index": 2,
"line": 68,
"rst": ".. reStructuredText-test-directive:: argument\n\nParagraph.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Directive processed. Type=\"reStructuredText-test-directive\", arguments=['argument'], options={}, content: None\n <paragraph>\n Paragraph.\n",
"asserts_error": true
},
{
"file": "test_directives/test_test_directives.py",
"group": "test_directives",
"index": 3,
"line": 81,
"rst": ".. reStructuredText-test-directive:: argument\n :option: value\n\nParagraph.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Directive processed. Type=\"reStructuredText-test-directive\", arguments=['argument'], options={'option': 'value'}, content: None\n <paragraph>\n Paragraph.\n",
"asserts_error": true
},
{
"file": "test_directives/test_test_directives.py",
"group": "test_directives",
"index": 4,
"line": 95,
"rst": ".. reStructuredText-test-directive:: :option: value\n\nParagraph.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Directive processed. Type=\"reStructuredText-test-directive\", arguments=[], options={'option': 'value'}, content: None\n <paragraph>\n Paragraph.\n",
"asserts_error": true
},
{
"file": "test_directives/test_test_directives.py",
"group": "test_directives",
"index": 5,
"line": 108,
"rst": ".. reStructuredText-test-directive:: :option:\n\nParagraph.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"reStructuredText-test-directive\" directive:\n invalid option value: (option: \"option\"; value: None)\n argument required but none supplied.\n <literal_block xml:space=\"preserve\">\n .. reStructuredText-test-directive:: :option:\n <paragraph>\n Paragraph.\n",
"asserts_error": true
},
{
"file": "test_directives/test_test_directives.py",
"group": "test_directives",
"index": 6,
"line": 125,
"rst": ".. reStructuredText-test-directive::\n\n Directive block contains one paragraph, with a blank line before.\n\nParagraph.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Directive processed. Type=\"reStructuredText-test-directive\", arguments=[], options={}, content:\n <literal_block xml:space=\"preserve\">\n Directive block contains one paragraph, with a blank line before.\n <paragraph>\n Paragraph.\n",
"asserts_error": true
},
{
"file": "test_directives/test_test_directives.py",
"group": "test_directives",
"index": 7,
"line": 142,
"rst": ".. reStructuredText-test-directive::\n\n\n Directive block contains one paragraph, with two blank lines before.\n\nParagraph.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Directive processed. Type=\"reStructuredText-test-directive\", arguments=[], options={}, content:\n <literal_block xml:space=\"preserve\">\n Directive block contains one paragraph, with two blank lines before.\n <paragraph>\n Paragraph.\n",
"asserts_error": true
},
{
"file": "test_directives/test_test_directives.py",
"group": "test_directives",
"index": 8,
"line": 160,
"rst": ".. reStructuredText-test-directive::\n Directive block contains one paragraph, no blank line before.\n\nParagraph.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Directive processed. Type=\"reStructuredText-test-directive\", arguments=['Directive block contains one paragraph, no blank line before.'], options={}, content: None\n <paragraph>\n Paragraph.\n",
"asserts_error": true
},
{
"file": "test_directives/test_test_directives.py",
"group": "test_directives",
"index": 9,
"line": 174,
"rst": ".. reStructuredText-test-directive::\n block\nno blank line.\n\nParagraph.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Directive processed. Type=\"reStructuredText-test-directive\", arguments=['block'], options={}, content: None\n <system_message level=\"2\" line=\"3\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Explicit markup ends without a blank line; unexpected unindent.\n <paragraph>\n no blank line.\n <paragraph>\n Paragraph.\n",
"asserts_error": true
},
{
"file": "test_directives/test_test_directives.py",
"group": "test_directives",
"index": 10,
"line": 194,
"rst": ".. reStructuredText-test-directive:: argument\n :option: * value1\n * value2\n\nParagraph.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Directive processed. Type=\"reStructuredText-test-directive\", arguments=['argument'], options={'option': '* value1\\n* value2'}, content: None\n <paragraph>\n Paragraph.\n",
"asserts_error": true
},
{
"file": "test_directives/test_test_directives.py",
"group": "test_directives",
"index": 11,
"line": 209,
"rst": ".. reStructuredText-test-directive::\n\n Directive \\block \\*contains* \\\\backslashes.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Directive processed. Type=\"reStructuredText-test-directive\", arguments=[], options={}, content:\n <literal_block xml:space=\"preserve\">\n Directive \\block \\*contains* \\\\backslashes.\n",
"asserts_error": true
},
{
"file": "test_directives/test_title.py",
"group": "title",
"index": 0,
"line": 42,
"rst": ".. title:: This is the document title.\n",
"doctree": "<document source=\"test data\" title=\"This is the document title.\">\n",
"asserts_error": false
},
{
"file": "test_directives/test_topics.py",
"group": "topics",
"index": 0,
"line": 42,
"rst": ".. topic::\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"topic\" directive:\n 1 argument(s) required, 0 supplied.\n <literal_block xml:space=\"preserve\">\n .. topic::\n",
"asserts_error": true
},
{
"file": "test_directives/test_topics.py",
"group": "topics",
"index": 1,
"line": 54,
"rst": ".. topic:: Title\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Content block expected for the \"topic\" directive; none found.\n <literal_block xml:space=\"preserve\">\n .. topic:: Title\n",
"asserts_error": true
},
{
"file": "test_directives/test_topics.py",
"group": "topics",
"index": 2,
"line": 65,
"rst": ".. topic:: Title\n\n Body.\n",
"doctree": "<document source=\"test data\">\n <topic>\n <title>\n Title\n <paragraph>\n Body.\n",
"asserts_error": false
},
{
"file": "test_directives/test_topics.py",
"group": "topics",
"index": 3,
"line": 78,
"rst": ".. topic:: With Options\n :class: custom\n :name: my point\n\n Body.\n",
"doctree": "<document source=\"test data\">\n <topic classes=\"custom\" ids=\"my-point\" names=\"my\\ point\">\n <title>\n With Options\n <paragraph>\n Body.\n",
"asserts_error": false
},
{
"file": "test_directives/test_topics.py",
"group": "topics",
"index": 4,
"line": 93,
"rst": ".. topic::\n\n Title\n\n Body.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"topic\" directive:\n 1 argument(s) required, 0 supplied.\n <literal_block xml:space=\"preserve\">\n .. topic::\n \n Title\n \n Body.\n",
"asserts_error": true
},
{
"file": "test_directives/test_topics.py",
"group": "topics",
"index": 5,
"line": 113,
"rst": ".. topic:: Title\n Body.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Content block expected for the \"topic\" directive; none found.\n <literal_block xml:space=\"preserve\">\n .. topic:: Title\n Body.\n",
"asserts_error": true
},
{
"file": "test_directives/test_topics.py",
"group": "topics",
"index": 6,
"line": 126,
"rst": ".. topic::\n\n Title\n Body.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"topic\" directive:\n 1 argument(s) required, 0 supplied.\n <literal_block xml:space=\"preserve\">\n .. topic::\n \n Title\n Body.\n",
"asserts_error": true
},
{
"file": "test_directives/test_topics.py",
"group": "topics",
"index": 7,
"line": 144,
"rst": ".. topic:: Title\n\n .. topic:: Nested\n\n Body.\n",
"doctree": "<document source=\"test data\">\n <topic>\n <title>\n Title\n <system_message level=\"3\" line=\"3\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n The \"topic\" directive may not be used within topics or body elements.\n <literal_block xml:space=\"preserve\">\n .. topic:: Nested\n \n Body.\n",
"asserts_error": true
},
{
"file": "test_directives/test_topics.py",
"group": "topics",
"index": 8,
"line": 164,
"rst": ".. topic:: Title\n\n .. topic:: Nested\n\n Body.\n More.\n",
"doctree": "<document source=\"test data\">\n <topic>\n <title>\n Title\n <system_message level=\"3\" line=\"3\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n The \"topic\" directive may not be used within topics or body elements.\n <literal_block xml:space=\"preserve\">\n .. topic:: Nested\n \n Body.\n <system_message level=\"2\" line=\"6\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Explicit markup ends without a blank line; unexpected unindent.\n <paragraph>\n More.\n",
"asserts_error": true
},
{
"file": "test_directives/test_topics.py",
"group": "topics",
"index": 9,
"line": 190,
"rst": ".. topic:: Title\n\n .. topic:: Nested\n\n Body.\n\n More.\n\nMore.\n",
"doctree": "<document source=\"test data\">\n <topic>\n <title>\n Title\n <system_message level=\"3\" line=\"3\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n The \"topic\" directive may not be used within topics or body elements.\n <literal_block xml:space=\"preserve\">\n .. topic:: Nested\n \n Body.\n <paragraph>\n More.\n <paragraph>\n More.\n",
"asserts_error": true
},
{
"file": "test_directives/test_topics.py",
"group": "topics",
"index": 10,
"line": 218,
"rst": ".. topic:: First\n\n Body\n\n.. topic:: Second\n\n Body.\n",
"doctree": "<document source=\"test data\">\n <topic>\n <title>\n First\n <paragraph>\n Body\n <topic>\n <title>\n Second\n <paragraph>\n Body.\n",
"asserts_error": false
},
{
"file": "test_directives/test_topics.py",
"group": "topics",
"index": 11,
"line": 240,
"rst": ".. sidebar:: Title\n :subtitle: Outer\n\n .. topic:: Nested\n\n Body.\n\n More.\n\nMore.\n",
"doctree": "<document source=\"test data\">\n <sidebar>\n <title>\n Title\n <subtitle>\n Outer\n <topic>\n <title>\n Nested\n <paragraph>\n Body.\n <paragraph>\n More.\n <paragraph>\n More.\n",
"asserts_error": false
},
{
"file": "test_directives/test_unicode.py",
"group": "unicode",
"index": 0,
"line": 59,
"rst": "\nInsert an em-dash (|mdash|), a copyright symbol (|copy|), a non-breaking\nspace (|nbsp|), a backwards-not-equals (|bne|), and a captial omega (|Omega|).\n\n.. |mdash| unicode:: 0x02014\n.. |copy| unicode:: \\u00A9\n.. |nbsp| unicode::  \n.. |bne| unicode:: U0003D U020E5\n.. |Omega| unicode:: U+003A9\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Insert an em-dash (\n <substitution_reference refname=\"mdash\">\n mdash\n ), a copyright symbol (\n <substitution_reference refname=\"copy\">\n copy\n ), a non-breaking\n space (\n <substitution_reference refname=\"nbsp\">\n nbsp\n ), a backwards-not-equals (\n <substitution_reference refname=\"bne\">\n bne\n ), and a captial omega (\n <substitution_reference refname=\"Omega\">\n Omega\n ).\n <substitution_definition names=\"mdash\">\n —\n <substitution_definition names=\"copy\">\n ©\n <substitution_definition names=\"nbsp\">\n \n <substitution_definition names=\"bne\">\n =\n ⃥\n <substitution_definition names=\"Omega\">\n Ω\n",
"asserts_error": false
},
{
"file": "test_directives/test_unicode.py",
"group": "unicode",
"index": 1,
"line": 101,
"rst": "\nBad input:\n\n.. |empty| unicode::\n.. |empty too| unicode:: .. comment doesn't count as content\n.. |not hex| unicode:: 0xHEX\n.. |not all hex| unicode:: UABCX\n.. unicode:: not in a substitution definition\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Bad input:\n <system_message level=\"3\" line=\"4\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"unicode\" directive:\n 1 argument(s) required, 0 supplied.\n <literal_block xml:space=\"preserve\">\n unicode::\n <system_message level=\"2\" line=\"4\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Substitution definition \"empty\" empty or invalid.\n <literal_block xml:space=\"preserve\">\n .. |empty| unicode::\n <system_message level=\"2\" line=\"5\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Substitution definition \"empty too\" empty or invalid.\n <literal_block xml:space=\"preserve\">\n .. |empty too| unicode:: .. comment doesn't count as content\n <substitution_definition names=\"not\\ hex\">\n 0xHEX\n <substitution_definition names=\"not\\ all\\ hex\">\n UABCX\n <system_message level=\"3\" line=\"8\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Invalid context: the \"unicode\" directive can only be used within a substitution definition.\n <literal_block xml:space=\"preserve\">\n .. unicode:: not in a substitution definition\n",
"asserts_error": true
},
{
"file": "test_directives/test_unicode.py",
"group": "unicode",
"index": 2,
"line": 140,
"rst": "\nTesting comments and extra text.\n\nCopyright |copy| 2003, |BogusMegaCorp (TM)|.\n\n.. |copy| unicode:: 0xA9 .. copyright sign\n.. |BogusMegaCorp (TM)| unicode:: BogusMegaCorp U+2122\n .. with trademark sign\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Testing comments and extra text.\n <paragraph>\n Copyright \n <substitution_reference refname=\"copy\">\n copy\n 2003, \n <substitution_reference refname=\"BogusMegaCorp (TM)\">\n BogusMegaCorp (TM)\n .\n <substitution_definition names=\"copy\">\n ©\n <substitution_definition names=\"BogusMegaCorp\\ (TM)\">\n BogusMegaCorp\n ™\n",
"asserts_error": false
},
{
"file": "test_directives/test_unknown.py",
"group": "unknown",
"index": 0,
"line": 42,
"rst": ".. reStructuredText-unknown-directive::\n\n.. reStructuredText-unknown-directive:: argument\n\n.. reStructuredText-unknown-directive::\n block\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n No directive entry for \"reStructuredText-unknown-directive\" in module \"docutils.parsers.rst.languages.en\".\n Trying \"reStructuredText-unknown-directive\" as canonical directive name.\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Unknown directive type \"reStructuredText-unknown-directive\".\n <literal_block xml:space=\"preserve\">\n .. reStructuredText-unknown-directive::\n <system_message level=\"1\" line=\"3\" source=\"test data\" type=\"INFO\">\n <paragraph>\n No directive entry for \"reStructuredText-unknown-directive\" in module \"docutils.parsers.rst.languages.en\".\n Trying \"reStructuredText-unknown-directive\" as canonical directive name.\n <system_message level=\"3\" line=\"3\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Unknown directive type \"reStructuredText-unknown-directive\".\n <literal_block xml:space=\"preserve\">\n .. reStructuredText-unknown-directive:: argument\n <system_message level=\"1\" line=\"5\" source=\"test data\" type=\"INFO\">\n <paragraph>\n No directive entry for \"reStructuredText-unknown-directive\" in module \"docutils.parsers.rst.languages.en\".\n Trying \"reStructuredText-unknown-directive\" as canonical directive name.\n <system_message level=\"3\" line=\"5\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Unknown directive type \"reStructuredText-unknown-directive\".\n <literal_block xml:space=\"preserve\">\n .. reStructuredText-unknown-directive::\n block\n",
"asserts_error": true
},
{
"file": "test_doctest_blocks.py",
"group": "doctest_blocks",
"index": 0,
"line": 42,
"rst": "Paragraph.\n\n>>> print(\"Doctest block.\")\nDoctest block.\n\nParagraph.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Paragraph.\n <doctest_block xml:space=\"preserve\">\n >>> print(\"Doctest block.\")\n Doctest block.\n <paragraph>\n Paragraph.\n",
"asserts_error": false
},
{
"file": "test_doctest_blocks.py",
"group": "doctest_blocks",
"index": 1,
"line": 60,
"rst": "Paragraph.\n\n>>> print(\" Indented output.\")\n Indented output.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Paragraph.\n <doctest_block xml:space=\"preserve\">\n >>> print(\" Indented output.\")\n Indented output.\n",
"asserts_error": false
},
{
"file": "test_doctest_blocks.py",
"group": "doctest_blocks",
"index": 2,
"line": 74,
"rst": "Paragraph.\n\n >>> print(\" Indented block & output.\")\n Indented block & output.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Paragraph.\n <block_quote>\n <doctest_block xml:space=\"preserve\">\n >>> print(\" Indented block & output.\")\n Indented block & output.\n",
"asserts_error": false
},
{
"file": "test_east_asian_text.py",
"group": "double_width",
"index": 0,
"line": 41,
"rst": "タイトル1\n=========\n\nタイトル2\n========\n",
"doctree": "<document source=\"test data\">\n <section ids=\"section-1\" names=\"タイトル1\">\n <title>\n タイトル1\n <section ids=\"section-2\" names=\"タイトル2\">\n <title>\n タイトル2\n <system_message level=\"2\" line=\"5\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Title underline too short.\n <literal_block xml:space=\"preserve\">\n タイトル2\n ========\n",
"asserts_error": true
},
{
"file": "test_east_asian_text.py",
"group": "double_width",
"index": 1,
"line": 63,
"rst": "\n+-----------------------+\n| * ヒョウ:ダイ1ギョウ |\n| * ダイ2ギョウ |\n+-----------------------+\n| \\* ダイ1ギョウ |\n| * ダイ2ギョウ |\n+-----------------------+\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"1\">\n <colspec colwidth=\"23\">\n <tbody>\n <row>\n <entry>\n <bullet_list bullet=\"*\">\n <list_item>\n <paragraph>\n ヒョウ:ダイ1ギョウ\n <list_item>\n <paragraph>\n ダイ2ギョウ\n <row>\n <entry>\n <paragraph>\n * ダイ1ギョウ\n * ダイ2ギョウ\n",
"asserts_error": false
},
{
"file": "test_east_asian_text.py",
"group": "double_width",
"index": 2,
"line": 93,
"rst": "Complex spanning pattern (no edge knows all rows/cols):\n\n+--------+---------------------+\n| 北西・ | 北・北東セル |\n| 西セル +--------------+------+\n| | 真ん中のセル | 東・ |\n+--------+--------------+ 南東 |\n| 南西・南セル | セル |\n+-----------------------+------+\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Complex spanning pattern (no edge knows all rows/cols):\n <table>\n <tgroup cols=\"3\">\n <colspec colwidth=\"8\">\n <colspec colwidth=\"14\">\n <colspec colwidth=\"6\">\n <tbody>\n <row>\n <entry morerows=\"1\">\n <paragraph>\n 北西・\n 西セル\n <entry morecols=\"1\">\n <paragraph>\n 北・北東セル\n <row>\n <entry>\n <paragraph>\n 真ん中のセル\n <entry morerows=\"1\">\n <paragraph>\n 東・\n 南東\n セル\n <row>\n <entry morecols=\"1\">\n <paragraph>\n 南西・南セル\n",
"asserts_error": false
},
{
"file": "test_east_asian_text.py",
"group": "double_width",
"index": 3,
"line": 136,
"rst": "========= =========\nダイ1ラン ダイ2ラン\n========= =========\n\n======== =========\nダイ1ラン ダイ2ラン\n======== =========\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"2\">\n <colspec colwidth=\"9\">\n <colspec colwidth=\"9\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n ダイ1ラン\n <entry>\n <paragraph>\n ダイ2ラン\n <system_message level=\"3\" line=\"6\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Malformed table.\n Text in column margin in table line 2.\n <literal_block xml:space=\"preserve\">\n ======== =========\n ダイ1ラン ダイ2ラン\n ======== =========\n",
"asserts_error": true
},
{
"file": "test_enumerated_lists.py",
"group": "enumerated_lists",
"index": 0,
"line": 42,
"rst": "1. Item one.\n\n2. Item two.\n\n3. Item three.\n",
"doctree": "<document source=\"test data\">\n <enumerated_list enumtype=\"arabic\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n Item one.\n <list_item>\n <paragraph>\n Item two.\n <list_item>\n <paragraph>\n Item three.\n",
"asserts_error": false
},
{
"file": "test_enumerated_lists.py",
"group": "enumerated_lists",
"index": 1,
"line": 62,
"rst": "No blank lines betwen items:\n\n1. Item one.\n2. Item two.\n3. Item three.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n No blank lines betwen items:\n <enumerated_list enumtype=\"arabic\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n Item one.\n <list_item>\n <paragraph>\n Item two.\n <list_item>\n <paragraph>\n Item three.\n",
"asserts_error": false
},
{
"file": "test_enumerated_lists.py",
"group": "enumerated_lists",
"index": 2,
"line": 84,
"rst": "1.\nempty item above, no blank line\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n 1.\n empty item above, no blank line\n",
"asserts_error": false
},
{
"file": "test_enumerated_lists.py",
"group": "enumerated_lists",
"index": 3,
"line": 94,
"rst": "Scrambled:\n\n3. Item three.\n\n2. Item two.\n\n1. Item one.\n\n3. Item three.\n2. Item two.\n1. Item one.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Scrambled:\n <enumerated_list enumtype=\"arabic\" prefix=\"\" start=\"3\" suffix=\".\">\n <list_item>\n <paragraph>\n Item three.\n <system_message level=\"1\" line=\"3\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Enumerated list start value not ordinal-1: \"3\" (ordinal 3)\n <enumerated_list enumtype=\"arabic\" prefix=\"\" start=\"2\" suffix=\".\">\n <list_item>\n <paragraph>\n Item two.\n <system_message level=\"1\" line=\"5\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Enumerated list start value not ordinal-1: \"2\" (ordinal 2)\n <enumerated_list enumtype=\"arabic\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n Item one.\n <paragraph>\n 3. Item three.\n 2. Item two.\n 1. Item one.\n",
"asserts_error": true
},
{
"file": "test_enumerated_lists.py",
"group": "enumerated_lists",
"index": 4,
"line": 134,
"rst": "Skipping item 3:\n\n1. Item 1.\n2. Item 2.\n4. Item 4.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Skipping item 3:\n <enumerated_list enumtype=\"arabic\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n Item 1.\n <system_message level=\"2\" line=\"4\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Enumerated list ends without a blank line; unexpected unindent.\n <paragraph>\n 2. Item 2.\n 4. Item 4.\n",
"asserts_error": true
},
{
"file": "test_enumerated_lists.py",
"group": "enumerated_lists",
"index": 5,
"line": 156,
"rst": "Start with non-ordinal-1:\n\n0. Item zero.\n1. Item one.\n2. Item two.\n3. Item three.\n\nAnd again:\n\n2. Item two.\n3. Item three.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Start with non-ordinal-1:\n <enumerated_list enumtype=\"arabic\" prefix=\"\" start=\"0\" suffix=\".\">\n <list_item>\n <paragraph>\n Item zero.\n <list_item>\n <paragraph>\n Item one.\n <list_item>\n <paragraph>\n Item two.\n <list_item>\n <paragraph>\n Item three.\n <system_message level=\"1\" line=\"3\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Enumerated list start value not ordinal-1: \"0\" (ordinal 0)\n <paragraph>\n And again:\n <enumerated_list enumtype=\"arabic\" prefix=\"\" start=\"2\" suffix=\".\">\n <list_item>\n <paragraph>\n Item two.\n <list_item>\n <paragraph>\n Item three.\n <system_message level=\"1\" line=\"10\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Enumerated list start value not ordinal-1: \"2\" (ordinal 2)\n",
"asserts_error": true
},
{
"file": "test_enumerated_lists.py",
"group": "enumerated_lists",
"index": 6,
"line": 202,
"rst": "1. Item one: line 1,\n line 2.\n2. Item two: line 1,\n line 2.\n3. Item three: paragraph 1, line 1,\n line 2.\n\n Paragraph 2.\n",
"doctree": "<document source=\"test data\">\n <enumerated_list enumtype=\"arabic\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n Item one: line 1,\n line 2.\n <list_item>\n <paragraph>\n Item two: line 1,\n line 2.\n <list_item>\n <paragraph>\n Item three: paragraph 1, line 1,\n line 2.\n <paragraph>\n Paragraph 2.\n",
"asserts_error": false
},
{
"file": "test_enumerated_lists.py",
"group": "enumerated_lists",
"index": 7,
"line": 230,
"rst": "Different enumeration sequences:\n\n1. Item 1.\n2. Item 2.\n3. Item 3.\n\nA. Item A.\nB. Item B.\nC. Item C.\n\na. Item a.\nb. Item b.\nc. Item c.\n\nI. Item I.\nII. Item II.\nIII. Item III.\n\ni. Item i.\nii. Item ii.\niii. Item iii.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Different enumeration sequences:\n <enumerated_list enumtype=\"arabic\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n Item 1.\n <list_item>\n <paragraph>\n Item 2.\n <list_item>\n <paragraph>\n Item 3.\n <enumerated_list enumtype=\"upperalpha\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n Item A.\n <list_item>\n <paragraph>\n Item B.\n <list_item>\n <paragraph>\n Item C.\n <enumerated_list enumtype=\"loweralpha\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n Item a.\n <list_item>\n <paragraph>\n Item b.\n <list_item>\n <paragraph>\n Item c.\n <enumerated_list enumtype=\"upperroman\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n Item I.\n <list_item>\n <paragraph>\n Item II.\n <list_item>\n <paragraph>\n Item III.\n <enumerated_list enumtype=\"lowerroman\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n Item i.\n <list_item>\n <paragraph>\n Item ii.\n <list_item>\n <paragraph>\n Item iii.\n",
"asserts_error": false
},
{
"file": "test_enumerated_lists.py",
"group": "enumerated_lists",
"index": 8,
"line": 308,
"rst": "Bad Roman numerals:\n\ni. i\n\nii. ii\n\niii. iii\n\niiii. iiii\n second line\n\n(LCD) is an acronym made up of Roman numerals\n\n(livid) is a word made up of Roman numerals\n\n(CIVIL) is another such word\n\n(I) I\n\n(IVXLCDM) IVXLCDM\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Bad Roman numerals:\n <enumerated_list enumtype=\"lowerroman\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n i\n <list_item>\n <paragraph>\n ii\n <list_item>\n <paragraph>\n iii\n <definition_list>\n <definition_list_item>\n <term>\n iiii. iiii\n <definition>\n <paragraph>\n second line\n <paragraph>\n (LCD) is an acronym made up of Roman numerals\n <paragraph>\n (livid) is a word made up of Roman numerals\n <paragraph>\n (CIVIL) is another such word\n <enumerated_list enumtype=\"upperroman\" prefix=\"(\" suffix=\")\">\n <list_item>\n <paragraph>\n I\n <paragraph>\n (IVXLCDM) IVXLCDM\n",
"asserts_error": false
},
{
"file": "test_enumerated_lists.py",
"group": "enumerated_lists",
"index": 9,
"line": 364,
"rst": "Potentially ambiguous cases:\n\nA. Item A.\nB. Item B.\nC. Item C.\n\nI. Item I.\nII. Item II.\nIII. Item III.\n\na. Item a.\nb. Item b.\nc. Item c.\n\ni. Item i.\nii. Item ii.\niii. Item iii.\n\nPhew! Safe!\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Potentially ambiguous cases:\n <enumerated_list enumtype=\"upperalpha\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n Item A.\n <list_item>\n <paragraph>\n Item B.\n <list_item>\n <paragraph>\n Item C.\n <enumerated_list enumtype=\"upperroman\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n Item I.\n <list_item>\n <paragraph>\n Item II.\n <list_item>\n <paragraph>\n Item III.\n <enumerated_list enumtype=\"loweralpha\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n Item a.\n <list_item>\n <paragraph>\n Item b.\n <list_item>\n <paragraph>\n Item c.\n <enumerated_list enumtype=\"lowerroman\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n Item i.\n <list_item>\n <paragraph>\n Item ii.\n <list_item>\n <paragraph>\n Item iii.\n <paragraph>\n Phew! Safe!\n",
"asserts_error": false
},
{
"file": "test_enumerated_lists.py",
"group": "enumerated_lists",
"index": 10,
"line": 432,
"rst": "Definitely ambiguous:\n\nA. Item A.\nB. Item B.\nC. Item C.\nD. Item D.\nE. Item E.\nF. Item F.\nG. Item G.\nH. Item H.\nI. Item I.\nII. Item II.\nIII. Item III.\n\na. Item a.\nb. Item b.\nc. Item c.\nd. Item d.\ne. Item e.\nf. Item f.\ng. Item g.\nh. Item h.\ni. Item i.\nii. Item ii.\niii. Item iii.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Definitely ambiguous:\n <enumerated_list enumtype=\"upperalpha\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n Item A.\n <list_item>\n <paragraph>\n Item B.\n <list_item>\n <paragraph>\n Item C.\n <list_item>\n <paragraph>\n Item D.\n <list_item>\n <paragraph>\n Item E.\n <list_item>\n <paragraph>\n Item F.\n <list_item>\n <paragraph>\n Item G.\n <list_item>\n <paragraph>\n Item H.\n <system_message level=\"2\" line=\"11\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Enumerated list ends without a blank line; unexpected unindent.\n <enumerated_list enumtype=\"upperroman\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n Item I.\n <list_item>\n <paragraph>\n Item II.\n <list_item>\n <paragraph>\n Item III.\n <enumerated_list enumtype=\"loweralpha\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n Item a.\n <list_item>\n <paragraph>\n Item b.\n <list_item>\n <paragraph>\n Item c.\n <list_item>\n <paragraph>\n Item d.\n <list_item>\n <paragraph>\n Item e.\n <list_item>\n <paragraph>\n Item f.\n <list_item>\n <paragraph>\n Item g.\n <list_item>\n <paragraph>\n Item h.\n <system_message level=\"2\" line=\"23\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Enumerated list ends without a blank line; unexpected unindent.\n <enumerated_list enumtype=\"lowerroman\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n Item i.\n <list_item>\n <paragraph>\n Item ii.\n <list_item>\n <paragraph>\n Item iii.\n",
"asserts_error": true
},
{
"file": "test_enumerated_lists.py",
"group": "enumerated_lists",
"index": 11,
"line": 540,
"rst": "Different enumeration formats:\n\n1. Item 1.\n2. Item 2.\n3. Item 3.\n\n1) Item 1).\n2) Item 2).\n3) Item 3).\n\n(1) Item (1).\n(2) Item (2).\n(3) Item (3).\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Different enumeration formats:\n <enumerated_list enumtype=\"arabic\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n Item 1.\n <list_item>\n <paragraph>\n Item 2.\n <list_item>\n <paragraph>\n Item 3.\n <enumerated_list enumtype=\"arabic\" prefix=\"\" suffix=\")\">\n <list_item>\n <paragraph>\n Item 1).\n <list_item>\n <paragraph>\n Item 2).\n <list_item>\n <paragraph>\n Item 3).\n <enumerated_list enumtype=\"arabic\" prefix=\"(\" suffix=\")\">\n <list_item>\n <paragraph>\n Item (1).\n <list_item>\n <paragraph>\n Item (2).\n <list_item>\n <paragraph>\n Item (3).\n",
"asserts_error": false
},
{
"file": "test_enumerated_lists.py",
"group": "enumerated_lists",
"index": 12,
"line": 590,
"rst": "Nested enumerated lists:\n\n1. Item 1.\n\n A) Item A).\n B) Item B).\n C) Item C).\n\n2. Item 2.\n\n (a) Item (a).\n\n I) Item I).\n II) Item II).\n III) Item III).\n\n (b) Item (b).\n\n (c) Item (c).\n\n (i) Item (i).\n (ii) Item (ii).\n (iii) Item (iii).\n\n3. Item 3.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Nested enumerated lists:\n <enumerated_list enumtype=\"arabic\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n Item 1.\n <enumerated_list enumtype=\"upperalpha\" prefix=\"\" suffix=\")\">\n <list_item>\n <paragraph>\n Item A).\n <list_item>\n <paragraph>\n Item B).\n <list_item>\n <paragraph>\n Item C).\n <list_item>\n <paragraph>\n Item 2.\n <enumerated_list enumtype=\"loweralpha\" prefix=\"(\" suffix=\")\">\n <list_item>\n <paragraph>\n Item (a).\n <enumerated_list enumtype=\"upperroman\" prefix=\"\" suffix=\")\">\n <list_item>\n <paragraph>\n Item I).\n <list_item>\n <paragraph>\n Item II).\n <list_item>\n <paragraph>\n Item III).\n <list_item>\n <paragraph>\n Item (b).\n <list_item>\n <paragraph>\n Item (c).\n <enumerated_list enumtype=\"lowerroman\" prefix=\"(\" suffix=\")\">\n <list_item>\n <paragraph>\n Item (i).\n <list_item>\n <paragraph>\n Item (ii).\n <list_item>\n <paragraph>\n Item (iii).\n <list_item>\n <paragraph>\n Item 3.\n",
"asserts_error": false
},
{
"file": "test_enumerated_lists.py",
"group": "enumerated_lists",
"index": 13,
"line": 672,
"rst": "A. Einstein was a great influence on\nB. Physicist, who was a colleague of\nC. Chemist. They all worked in\nPrinceton, NJ.\n\nUsing a non-breaking space as a workaround:\n\nA. Einstein was a great influence on\nB. Physicist, who was a colleague of\nC. Chemist. They all worked in\nPrinceton, NJ.\n",
"doctree": "<document source=\"test data\">\n <enumerated_list enumtype=\"upperalpha\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n Einstein was a great influence on\n <list_item>\n <paragraph>\n Physicist, who was a colleague of\n <system_message level=\"2\" line=\"3\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Enumerated list ends without a blank line; unexpected unindent.\n <paragraph>\n C. Chemist. They all worked in\n Princeton, NJ.\n <paragraph>\n Using a non-breaking space as a workaround:\n <paragraph>\n A. Einstein was a great influence on\n B. Physicist, who was a colleague of\n C. Chemist. They all worked in\n Princeton, NJ.\n",
"asserts_error": true
},
{
"file": "test_enumerated_lists.py",
"group": "enumerated_lists",
"index": 14,
"line": 708,
"rst": "1. Item one: line 1,\n line 2.\n2. Item two: line 1,\n line 2.\n3. Item three: paragraph 1, line 1,\n line 2.\n\n Paragraph 2.\n",
"doctree": "<document source=\"test data\">\n <enumerated_list enumtype=\"arabic\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n Item one: line 1,\n line 2.\n <list_item>\n <paragraph>\n Item two: line 1,\n <system_message level=\"2\" line=\"4\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Enumerated list ends without a blank line; unexpected unindent.\n <block_quote>\n <paragraph>\n line 2.\n <system_message level=\"2\" line=\"5\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Block quote ends without a blank line; unexpected unindent.\n <enumerated_list enumtype=\"arabic\" prefix=\"\" start=\"3\" suffix=\".\">\n <list_item>\n <paragraph>\n Item three: paragraph 1, line 1,\n <system_message level=\"1\" line=\"5\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Enumerated list start value not ordinal-1: \"3\" (ordinal 3)\n <system_message level=\"2\" line=\"6\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Enumerated list ends without a blank line; unexpected unindent.\n <block_quote>\n <paragraph>\n line 2.\n <block_quote>\n <paragraph>\n Paragraph 2.\n",
"asserts_error": true
},
{
"file": "test_enumerated_lists.py",
"group": "enumerated_lists",
"index": 15,
"line": 754,
"rst": "1. Item one.\n\n#. Item two.\n\n#. Item three.\n",
"doctree": "<document source=\"test data\">\n <enumerated_list enumtype=\"arabic\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n Item one.\n <list_item>\n <paragraph>\n Item two.\n <list_item>\n <paragraph>\n Item three.\n",
"asserts_error": false
},
{
"file": "test_enumerated_lists.py",
"group": "enumerated_lists",
"index": 16,
"line": 774,
"rst": "a. Item one.\n#. Item two.\n#. Item three.\n",
"doctree": "<document source=\"test data\">\n <enumerated_list enumtype=\"loweralpha\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n Item one.\n <list_item>\n <paragraph>\n Item two.\n <list_item>\n <paragraph>\n Item three.\n",
"asserts_error": false
},
{
"file": "test_enumerated_lists.py",
"group": "enumerated_lists",
"index": 17,
"line": 792,
"rst": "i. Item one.\nii. Item two.\n#. Item three.\n",
"doctree": "<document source=\"test data\">\n <enumerated_list enumtype=\"lowerroman\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n Item one.\n <list_item>\n <paragraph>\n Item two.\n <list_item>\n <paragraph>\n Item three.\n",
"asserts_error": false
},
{
"file": "test_enumerated_lists.py",
"group": "enumerated_lists",
"index": 18,
"line": 810,
"rst": "#. Item one.\n#. Item two.\n#. Item three.\n",
"doctree": "<document source=\"test data\">\n <enumerated_list enumtype=\"arabic\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n Item one.\n <list_item>\n <paragraph>\n Item two.\n <list_item>\n <paragraph>\n Item three.\n",
"asserts_error": false
},
{
"file": "test_enumerated_lists.py",
"group": "enumerated_lists",
"index": 19,
"line": 828,
"rst": "1. Item one.\n#. Item two.\n3. Item three.\n",
"doctree": "<document source=\"test data\">\n <enumerated_list enumtype=\"arabic\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n Item one.\n <system_message level=\"2\" line=\"2\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Enumerated list ends without a blank line; unexpected unindent.\n <paragraph>\n #. Item two.\n 3. Item three.\n",
"asserts_error": true
},
{
"file": "test_enumerated_lists.py",
"group": "enumerated_lists",
"index": 20,
"line": 846,
"rst": "z.\nx\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n z.\n x\n",
"asserts_error": false
},
{
"file": "test_enumerated_lists.py",
"group": "enumerated_lists",
"index": 21,
"line": 856,
"rst": "3-space indent, with a trailing space:\n\n1. \n foo\n\n3-space indent, no trailing space:\n\n1.\n foo\n\n2-space indent:\n\n1.\n foo\n\n1-space indent:\n\n1.\n foo\n\n0-space indent, not a list item:\n\n1.\nfoo\n\nNo item content:\n\n1.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n 3-space indent, with a trailing space:\n <enumerated_list enumtype=\"arabic\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n foo\n <paragraph>\n 3-space indent, no trailing space:\n <enumerated_list enumtype=\"arabic\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n foo\n <paragraph>\n 2-space indent:\n <enumerated_list enumtype=\"arabic\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n foo\n <paragraph>\n 1-space indent:\n <enumerated_list enumtype=\"arabic\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n foo\n <paragraph>\n 0-space indent, not a list item:\n <paragraph>\n 1.\n foo\n <paragraph>\n No item content:\n <enumerated_list enumtype=\"arabic\" prefix=\"\" suffix=\".\">\n <list_item>\n",
"asserts_error": false
},
{
"file": "test_field_lists.py",
"group": "field_lists",
"index": 0,
"line": 42,
"rst": "One-liners:\n\n:Author: Me\n\n:Version: 1\n\n:Date: 2001-08-11\n\n:Parameter i: integer\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n One-liners:\n <field_list>\n <field>\n <field_name>\n Author\n <field_body>\n <paragraph>\n Me\n <field>\n <field_name>\n Version\n <field_body>\n <paragraph>\n 1\n <field>\n <field_name>\n Date\n <field_body>\n <paragraph>\n 2001-08-11\n <field>\n <field_name>\n Parameter i\n <field_body>\n <paragraph>\n integer\n",
"asserts_error": false
},
{
"file": "test_field_lists.py",
"group": "field_lists",
"index": 1,
"line": 83,
"rst": "One-liners, no blank lines:\n\n:Author: Me\n:Version: 1\n:Date: 2001-08-11\n:Parameter i: integer\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n One-liners, no blank lines:\n <field_list>\n <field>\n <field_name>\n Author\n <field_body>\n <paragraph>\n Me\n <field>\n <field_name>\n Version\n <field_body>\n <paragraph>\n 1\n <field>\n <field_name>\n Date\n <field_body>\n <paragraph>\n 2001-08-11\n <field>\n <field_name>\n Parameter i\n <field_body>\n <paragraph>\n integer\n",
"asserts_error": false
},
{
"file": "test_field_lists.py",
"group": "field_lists",
"index": 2,
"line": 121,
"rst": ":field:\nempty item above, no blank line\n",
"doctree": "<document source=\"test data\">\n <field_list>\n <field>\n <field_name>\n field\n <field_body>\n <system_message level=\"2\" line=\"2\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Field list ends without a blank line; unexpected unindent.\n <paragraph>\n empty item above, no blank line\n",
"asserts_error": true
},
{
"file": "test_field_lists.py",
"group": "field_lists",
"index": 3,
"line": 138,
"rst": "Field bodies starting on the next line:\n\n:Author:\n Me\n:Version:\n 1\n:Date:\n 2001-08-11\n:Parameter i:\n integer\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Field bodies starting on the next line:\n <field_list>\n <field>\n <field_name>\n Author\n <field_body>\n <paragraph>\n Me\n <field>\n <field_name>\n Version\n <field_body>\n <paragraph>\n 1\n <field>\n <field_name>\n Date\n <field_body>\n <paragraph>\n 2001-08-11\n <field>\n <field_name>\n Parameter i\n <field_body>\n <paragraph>\n integer\n",
"asserts_error": false
},
{
"file": "test_field_lists.py",
"group": "field_lists",
"index": 4,
"line": 180,
"rst": "One-paragraph, multi-liners:\n\n:Authors: Me,\n Myself,\n and I\n:Version: 1\n or so\n:Date: 2001-08-11\n (Saturday)\n:Parameter i: counter\n (integer)\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n One-paragraph, multi-liners:\n <field_list>\n <field>\n <field_name>\n Authors\n <field_body>\n <paragraph>\n Me,\n Myself,\n and I\n <field>\n <field_name>\n Version\n <field_body>\n <paragraph>\n 1\n or so\n <field>\n <field_name>\n Date\n <field_body>\n <paragraph>\n 2001-08-11\n (Saturday)\n <field>\n <field_name>\n Parameter i\n <field_body>\n <paragraph>\n counter\n (integer)\n",
"asserts_error": false
},
{
"file": "test_field_lists.py",
"group": "field_lists",
"index": 5,
"line": 228,
"rst": "One-paragraph, multi-liners, not lined up:\n\n:Authors: Me,\n Myself,\n and I\n:Version: 1\n or so\n:Date: 2001-08-11\n (Saturday)\n:Parameter i: counter\n (integer)\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n One-paragraph, multi-liners, not lined up:\n <field_list>\n <field>\n <field_name>\n Authors\n <field_body>\n <paragraph>\n Me,\n Myself,\n and I\n <field>\n <field_name>\n Version\n <field_body>\n <paragraph>\n 1\n or so\n <field>\n <field_name>\n Date\n <field_body>\n <paragraph>\n 2001-08-11\n (Saturday)\n <field>\n <field_name>\n Parameter i\n <field_body>\n <paragraph>\n counter\n (integer)\n",
"asserts_error": false
},
{
"file": "test_field_lists.py",
"group": "field_lists",
"index": 6,
"line": 276,
"rst": "Multiple body elements:\n\n:Authors: - Me\n - Myself\n - I\n\n:Abstract:\n This is a field list item's body,\n containing multiple elements.\n\n Here's a literal block::\n\n def f(x):\n return x**2 + x\n\n Even nested field lists are possible:\n\n :Date: 2001-08-11\n :Day: Saturday\n :Time: 15:07\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Multiple body elements:\n <field_list>\n <field>\n <field_name>\n Authors\n <field_body>\n <bullet_list bullet=\"-\">\n <list_item>\n <paragraph>\n Me\n <list_item>\n <paragraph>\n Myself\n <list_item>\n <paragraph>\n I\n <field>\n <field_name>\n Abstract\n <field_body>\n <paragraph>\n This is a field list item's body,\n containing multiple elements.\n <paragraph>\n Here's a literal block:\n <literal_block xml:space=\"preserve\">\n def f(x):\n return x**2 + x\n <paragraph>\n Even nested field lists are possible:\n <field_list>\n <field>\n <field_name>\n Date\n <field_body>\n <paragraph>\n 2001-08-11\n <field>\n <field_name>\n Day\n <field_body>\n <paragraph>\n Saturday\n <field>\n <field_name>\n Time\n <field_body>\n <paragraph>\n 15:07\n",
"asserts_error": false
},
{
"file": "test_field_lists.py",
"group": "field_lists",
"index": 7,
"line": 351,
"rst": "Nested field lists on one line:\n\n:field1: :field2: :field3: body\n:field4: :field5: :field6: body\n :field7: body\n :field8: body\n :field9: body line 1\n body line 2\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Nested field lists on one line:\n <field_list>\n <field>\n <field_name>\n field1\n <field_body>\n <field_list>\n <field>\n <field_name>\n field2\n <field_body>\n <field_list>\n <field>\n <field_name>\n field3\n <field_body>\n <paragraph>\n body\n <field>\n <field_name>\n field4\n <field_body>\n <field_list>\n <field>\n <field_name>\n field5\n <field_body>\n <field_list>\n <field>\n <field_name>\n field6\n <field_body>\n <paragraph>\n body\n <field>\n <field_name>\n field7\n <field_body>\n <paragraph>\n body\n <field>\n <field_name>\n field8\n <field_body>\n <paragraph>\n body\n <field>\n <field_name>\n field9\n <field_body>\n <paragraph>\n body line 1\n body line 2\n",
"asserts_error": false
},
{
"file": "test_field_lists.py",
"group": "field_lists",
"index": 8,
"line": 418,
"rst": ":Parameter i j k: multiple arguments\n",
"doctree": "<document source=\"test data\">\n <field_list>\n <field>\n <field_name>\n Parameter i j k\n <field_body>\n <paragraph>\n multiple arguments\n",
"asserts_error": false
},
{
"file": "test_field_lists.py",
"group": "field_lists",
"index": 9,
"line": 431,
"rst": ":Field *name* `with` **inline** ``markup``: inline markup in\n field name is parsed.\n",
"doctree": "<document source=\"test data\">\n <field_list>\n <field>\n <field_name>\n Field \n <emphasis>\n name\n \n <title_reference>\n with\n \n <strong>\n inline\n \n <literal>\n markup\n <field_body>\n <paragraph>\n inline markup in\n field name is parsed.\n",
"asserts_error": false
},
{
"file": "test_field_lists.py",
"group": "field_lists",
"index": 10,
"line": 457,
"rst": ":Field name with *bad inline markup: should generate warning.\n",
"doctree": "<document source=\"test data\">\n <field_list>\n <field>\n <field_name>\n Field name with \n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n *\n bad inline markup\n <field_body>\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline emphasis start-string without end-string.\n <paragraph>\n should generate warning.\n",
"asserts_error": true
},
{
"file": "test_field_lists.py",
"group": "field_lists",
"index": 11,
"line": 476,
"rst": "Some edge cases:\n\n:Empty:\n:Author: Me\nNo blank line before this paragraph.\n\n: Field: marker must not begin with whitespace.\n\n:Field : marker must not end with whitespace.\n\nField: marker is missing its open-colon.\n\n:Field marker is missing its close-colon.\n\n:Field\\: names\\: with\\: colons\\:: are possible.\n\n:\\\\Field\\ names with backslashes\\\\: are possible, too.\n\n:\\\\: A backslash.\n\n:Not a\\\\\\: field list.\n\n:Not a \\: field list either.\n\n:\\: Not a field list either.\n\n:\\:\n A definition list, not a field list.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Some edge cases:\n <field_list>\n <field>\n <field_name>\n Empty\n <field_body>\n <field>\n <field_name>\n Author\n <field_body>\n <paragraph>\n Me\n <system_message level=\"2\" line=\"5\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Field list ends without a blank line; unexpected unindent.\n <paragraph>\n No blank line before this paragraph.\n <paragraph>\n : Field: marker must not begin with whitespace.\n <paragraph>\n :Field : marker must not end with whitespace.\n <paragraph>\n Field: marker is missing its open-colon.\n <paragraph>\n :Field marker is missing its close-colon.\n <field_list>\n <field>\n <field_name>\n Field: names: with: colons:\n <field_body>\n <paragraph>\n are possible.\n <field>\n <field_name>\n \\Field names with backslashes\\\n <field_body>\n <paragraph>\n are possible, too.\n <field>\n <field_name>\n \\\n <field_body>\n <paragraph>\n A backslash.\n <paragraph>\n :Not a\\: field list.\n <paragraph>\n :Not a : field list either.\n <paragraph>\n :: Not a field list either.\n <definition_list>\n <definition_list_item>\n <term>\n ::\n <definition>\n <paragraph>\n A definition list, not a field list.\n",
"asserts_error": true
},
{
"file": "test_field_lists.py",
"group": "field_lists",
"index": 12,
"line": 566,
"rst": "\n:first: field\n:field:name:with:embedded:colons: unambiguous, no need for escapes\n\n..\n\n:embedded:colons: in first field name\n:field:\\`:name: not interpreted text\n:field:\\`name: not interpreted text\n",
"doctree": "<document source=\"test data\">\n <field_list>\n <field>\n <field_name>\n first\n <field_body>\n <paragraph>\n field\n <field>\n <field_name>\n field:name:with:embedded:colons\n <field_body>\n <paragraph>\n unambiguous, no need for escapes\n <comment xml:space=\"preserve\">\n <field_list>\n <field>\n <field_name>\n embedded:colons\n <field_body>\n <paragraph>\n in first field name\n <field>\n <field_name>\n field:`:name\n <field_body>\n <paragraph>\n not interpreted text\n <field>\n <field_name>\n field:`name\n <field_body>\n <paragraph>\n not interpreted text\n",
"asserts_error": false
},
{
"file": "test_field_lists.py",
"group": "field_lists",
"index": 13,
"line": 612,
"rst": "\nEdge cases involving embedded colons and interpreted text.\n\nRecognized as field list items:\n\n:field\\:`name`: interpreted text (standard role) requires\n escaping a leading colon in a field name\n\n:field:name: unambiguous, no need for escapes\n\n:field::name: double colons are OK, too\n\n:field:\\`name`: not interpreted text\n\n:`field name`:code:: interpreted text with role in the field name\n works only when the role follows the text\n\n:a `complex`:code:\\ field name: field body\n\nNot recognized as field list items:\n\n::code:`not a field name`: paragraph with interpreted text\n\n:code:`not a field name`: paragraph with interpreted text\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Edge cases involving embedded colons and interpreted text.\n <paragraph>\n Recognized as field list items:\n <field_list>\n <field>\n <field_name>\n field:\n <title_reference>\n name\n <field_body>\n <paragraph>\n interpreted text (standard role) requires\n escaping a leading colon in a field name\n <field>\n <field_name>\n field:name\n <field_body>\n <paragraph>\n unambiguous, no need for escapes\n <field>\n <field_name>\n field::name\n <field_body>\n <paragraph>\n double colons are OK, too\n <field>\n <field_name>\n field:`name`\n <field_body>\n <paragraph>\n not interpreted text\n <field>\n <field_name>\n <literal classes=\"code\">\n field name\n <field_body>\n <paragraph>\n interpreted text with role in the field name\n works only when the role follows the text\n <field>\n <field_name>\n a \n <literal classes=\"code\">\n complex\n field name\n <field_body>\n <paragraph>\n field body\n <paragraph>\n Not recognized as field list items:\n <paragraph>\n :\n <literal classes=\"code\">\n not a field name\n : paragraph with interpreted text\n <paragraph>\n <literal classes=\"code\">\n not a field name\n : paragraph with interpreted text\n",
"asserts_error": false
},
{
"file": "test_footnotes.py",
"group": "footnotes",
"index": 0,
"line": 42,
"rst": ".. [1] This is a footnote.\n",
"doctree": "<document source=\"test data\">\n <footnote ids=\"footnote-1\" names=\"1\">\n <label>\n 1\n <paragraph>\n This is a footnote.\n",
"asserts_error": false
},
{
"file": "test_footnotes.py",
"group": "footnotes",
"index": 1,
"line": 53,
"rst": ".. [1] This is a footnote\n on multiple lines.\n",
"doctree": "<document source=\"test data\">\n <footnote ids=\"footnote-1\" names=\"1\">\n <label>\n 1\n <paragraph>\n This is a footnote\n on multiple lines.\n",
"asserts_error": false
},
{
"file": "test_footnotes.py",
"group": "footnotes",
"index": 2,
"line": 66,
"rst": ".. [1] This is a footnote\n on multiple lines with more space.\n\n.. [2] This is a footnote\n on multiple lines with less space.\n",
"doctree": "<document source=\"test data\">\n <footnote ids=\"footnote-1\" names=\"1\">\n <label>\n 1\n <paragraph>\n This is a footnote\n on multiple lines with more space.\n <footnote ids=\"footnote-2\" names=\"2\">\n <label>\n 2\n <paragraph>\n This is a footnote\n on multiple lines with less space.\n",
"asserts_error": false
},
{
"file": "test_footnotes.py",
"group": "footnotes",
"index": 3,
"line": 88,
"rst": ".. [1]\n This is a footnote on multiple lines\n whose block starts on line 2.\n",
"doctree": "<document source=\"test data\">\n <footnote ids=\"footnote-1\" names=\"1\">\n <label>\n 1\n <paragraph>\n This is a footnote on multiple lines\n whose block starts on line 2.\n",
"asserts_error": false
},
{
"file": "test_footnotes.py",
"group": "footnotes",
"index": 4,
"line": 102,
"rst": ".. [1]\n\nThat was an empty footnote.\n",
"doctree": "<document source=\"test data\">\n <footnote ids=\"footnote-1\" names=\"1\">\n <label>\n 1\n <paragraph>\n That was an empty footnote.\n",
"asserts_error": false
},
{
"file": "test_footnotes.py",
"group": "footnotes",
"index": 5,
"line": 115,
"rst": ".. [1]\nNo blank line.\n",
"doctree": "<document source=\"test data\">\n <footnote ids=\"footnote-1\" names=\"1\">\n <label>\n 1\n <system_message level=\"2\" line=\"2\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Explicit markup ends without a blank line; unexpected unindent.\n <paragraph>\n No blank line.\n",
"asserts_error": true
},
{
"file": "test_footnotes.py",
"group": "auto_numbered_footnotes",
"index": 0,
"line": 133,
"rst": "[#]_ is the first auto-numbered footnote reference.\n[#]_ is the second auto-numbered footnote reference.\n\n.. [#] Auto-numbered footnote 1.\n.. [#] Auto-numbered footnote 2.\n.. [#] Auto-numbered footnote 3.\n\n[#]_ is the third auto-numbered footnote reference.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <footnote_reference auto=\"1\" ids=\"footnote-reference-1\">\n is the first auto-numbered footnote reference.\n <footnote_reference auto=\"1\" ids=\"footnote-reference-2\">\n is the second auto-numbered footnote reference.\n <footnote auto=\"1\" ids=\"footnote-1\">\n <paragraph>\n Auto-numbered footnote 1.\n <footnote auto=\"1\" ids=\"footnote-2\">\n <paragraph>\n Auto-numbered footnote 2.\n <footnote auto=\"1\" ids=\"footnote-3\">\n <paragraph>\n Auto-numbered footnote 3.\n <paragraph>\n <footnote_reference auto=\"1\" ids=\"footnote-reference-3\">\n is the third auto-numbered footnote reference.\n",
"asserts_error": false
},
{
"file": "test_footnotes.py",
"group": "auto_numbered_footnotes",
"index": 1,
"line": 163,
"rst": "[#third]_ is a reference to the third auto-numbered footnote.\n\n.. [#first] First auto-numbered footnote.\n.. [#second] Second auto-numbered footnote.\n.. [#third] Third auto-numbered footnote.\n\n[#second]_ is a reference to the second auto-numbered footnote.\n[#first]_ is a reference to the first auto-numbered footnote.\n[#third]_ is another reference to the third auto-numbered footnote.\n\nHere are some internal cross-references to the targets generated by\nthe footnotes: first_, second_, third_.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <footnote_reference auto=\"1\" ids=\"footnote-reference-1\" refname=\"third\">\n is a reference to the third auto-numbered footnote.\n <footnote auto=\"1\" ids=\"first\" names=\"first\">\n <paragraph>\n First auto-numbered footnote.\n <footnote auto=\"1\" ids=\"second\" names=\"second\">\n <paragraph>\n Second auto-numbered footnote.\n <footnote auto=\"1\" ids=\"third\" names=\"third\">\n <paragraph>\n Third auto-numbered footnote.\n <paragraph>\n <footnote_reference auto=\"1\" ids=\"footnote-reference-2\" refname=\"second\">\n is a reference to the second auto-numbered footnote.\n <footnote_reference auto=\"1\" ids=\"footnote-reference-3\" refname=\"first\">\n is a reference to the first auto-numbered footnote.\n <footnote_reference auto=\"1\" ids=\"footnote-reference-4\" refname=\"third\">\n is another reference to the third auto-numbered footnote.\n <paragraph>\n Here are some internal cross-references to the targets generated by\n the footnotes: \n <reference name=\"first\" refname=\"first\">\n first\n , \n <reference name=\"second\" refname=\"second\">\n second\n , \n <reference name=\"third\" refname=\"third\">\n third\n .\n",
"asserts_error": false
},
{
"file": "test_footnotes.py",
"group": "auto_numbered_footnotes",
"index": 2,
"line": 211,
"rst": "Mixed anonymous and labelled auto-numbered footnotes:\n\n[#four]_ should be 4, [#]_ should be 1,\n[#]_ should be 3, [#]_ is one too many,\n[#two]_ should be 2, and [#six]_ doesn't exist.\n\n.. [#] Auto-numbered footnote 1.\n.. [#two] Auto-numbered footnote 2.\n.. [#] Auto-numbered footnote 3.\n.. [#four] Auto-numbered footnote 4.\n.. [#five] Auto-numbered footnote 5.\n.. [#five] Auto-numbered footnote 5 again (duplicate).\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Mixed anonymous and labelled auto-numbered footnotes:\n <paragraph>\n <footnote_reference auto=\"1\" ids=\"footnote-reference-1\" refname=\"four\">\n should be 4, \n <footnote_reference auto=\"1\" ids=\"footnote-reference-2\">\n should be 1,\n <footnote_reference auto=\"1\" ids=\"footnote-reference-3\">\n should be 3, \n <footnote_reference auto=\"1\" ids=\"footnote-reference-4\">\n is one too many,\n <footnote_reference auto=\"1\" ids=\"footnote-reference-5\" refname=\"two\">\n should be 2, and \n <footnote_reference auto=\"1\" ids=\"footnote-reference-6\" refname=\"six\">\n doesn't exist.\n <footnote auto=\"1\" ids=\"footnote-1\">\n <paragraph>\n Auto-numbered footnote 1.\n <footnote auto=\"1\" ids=\"two\" names=\"two\">\n <paragraph>\n Auto-numbered footnote 2.\n <footnote auto=\"1\" ids=\"footnote-2\">\n <paragraph>\n Auto-numbered footnote 3.\n <footnote auto=\"1\" ids=\"four\" names=\"four\">\n <paragraph>\n Auto-numbered footnote 4.\n <footnote auto=\"1\" dupnames=\"five\" ids=\"five\">\n <paragraph>\n Auto-numbered footnote 5.\n <footnote auto=\"1\" dupnames=\"five\" ids=\"five-1\">\n <system_message backrefs=\"five-1\" level=\"2\" line=\"12\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Duplicate explicit target name: \"five\".\n <paragraph>\n Auto-numbered footnote 5 again (duplicate).\n",
"asserts_error": true
},
{
"file": "test_footnotes.py",
"group": "auto_numbered_footnotes",
"index": 3,
"line": 264,
"rst": "Mixed manually-numbered, anonymous auto-numbered,\nand labelled auto-numbered footnotes:\n\n[#four]_ should be 4, [#]_ should be 2,\n[1]_ is 1, [3]_ is 3,\n[#]_ should be 6, [#]_ is one too many,\n[#five]_ should be 5, and [#six]_ doesn't exist.\n\n.. [1] Manually-numbered footnote 1.\n.. [#] Auto-numbered footnote 2.\n.. [#four] Auto-numbered footnote 4.\n.. [3] Manually-numbered footnote 3\n.. [#five] Auto-numbered footnote 5.\n.. [#five] Auto-numbered footnote 5 again (duplicate).\n.. [#] Auto-numbered footnote 6.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Mixed manually-numbered, anonymous auto-numbered,\n and labelled auto-numbered footnotes:\n <paragraph>\n <footnote_reference auto=\"1\" ids=\"footnote-reference-1\" refname=\"four\">\n should be 4, \n <footnote_reference auto=\"1\" ids=\"footnote-reference-2\">\n should be 2,\n <footnote_reference ids=\"footnote-reference-3\" refname=\"1\">\n 1\n is 1, \n <footnote_reference ids=\"footnote-reference-4\" refname=\"3\">\n 3\n is 3,\n <footnote_reference auto=\"1\" ids=\"footnote-reference-5\">\n should be 6, \n <footnote_reference auto=\"1\" ids=\"footnote-reference-6\">\n is one too many,\n <footnote_reference auto=\"1\" ids=\"footnote-reference-7\" refname=\"five\">\n should be 5, and \n <footnote_reference auto=\"1\" ids=\"footnote-reference-8\" refname=\"six\">\n doesn't exist.\n <footnote ids=\"footnote-1\" names=\"1\">\n <label>\n 1\n <paragraph>\n Manually-numbered footnote 1.\n <footnote auto=\"1\" ids=\"footnote-2\">\n <paragraph>\n Auto-numbered footnote 2.\n <footnote auto=\"1\" ids=\"four\" names=\"four\">\n <paragraph>\n Auto-numbered footnote 4.\n <footnote ids=\"footnote-3\" names=\"3\">\n <label>\n 3\n <paragraph>\n Manually-numbered footnote 3\n <footnote auto=\"1\" dupnames=\"five\" ids=\"five\">\n <paragraph>\n Auto-numbered footnote 5.\n <footnote auto=\"1\" dupnames=\"five\" ids=\"five-1\">\n <system_message backrefs=\"five-1\" level=\"2\" line=\"14\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Duplicate explicit target name: \"five\".\n <paragraph>\n Auto-numbered footnote 5 again (duplicate).\n <footnote auto=\"1\" ids=\"footnote-4\">\n <paragraph>\n Auto-numbered footnote 6.\n",
"asserts_error": true
},
{
"file": "test_footnotes.py",
"group": "auto_symbol_footnotes",
"index": 0,
"line": 337,
"rst": ".. [*] This is an auto-symbol footnote.\n",
"doctree": "<document source=\"test data\">\n <footnote auto=\"*\" ids=\"footnote-1\">\n <paragraph>\n This is an auto-symbol footnote.\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "emphasis",
"index": 0,
"line": 42,
"rst": "*emphasis*\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <emphasis>\n emphasis\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "emphasis",
"index": 1,
"line": 51,
"rst": "l'*emphasis* with the *emphasis*' apostrophe.\nl’*emphasis* with the *emphasis*’ apostrophe.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n l'\n <emphasis>\n emphasis\n with the \n <emphasis>\n emphasis\n ' apostrophe.\n l’\n <emphasis>\n emphasis\n with the \n <emphasis>\n emphasis\n ’ apostrophe.\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "emphasis",
"index": 2,
"line": 73,
"rst": "*emphasized sentence\nacross lines*\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <emphasis>\n emphasized sentence\n across lines\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "emphasis",
"index": 3,
"line": 84,
"rst": "*emphasis without closing asterisk\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n *\n emphasis without closing asterisk\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline emphasis start-string without end-string.\n",
"asserts_error": true
},
{
"file": "test_inline_markup.py",
"group": "emphasis",
"index": 4,
"line": 97,
"rst": "some punctuation is allowed around inline markup, e.g.\n/*emphasis*/, -*emphasis*-, and :*emphasis*: (delimiters),\n(*emphasis*), [*emphasis*], <*emphasis*>, {*emphasis*} (open/close pairs)\n*emphasis*., *emphasis*,, *emphasis*!, and *emphasis*\\ (closing delimiters),\n\nbut not\n)*emphasis*(, ]*emphasis*[, >*emphasis*>, }*emphasis*{ (close/open pairs),\n(*), [*], '*' or '\"*\"' (\"quoted\" start-string),\nx*2* or 2*x* (alphanumeric char before),\n\\*args or * (escaped, whitespace behind start-string),\nor *the\\* *stars\\* *inside* (escaped, whitespace before end-string).\n\nHowever, '*args' will trigger a warning and may be problematic.\n\nwhat about *this**?\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n some punctuation is allowed around inline markup, e.g.\n /\n <emphasis>\n emphasis\n /, -\n <emphasis>\n emphasis\n -, and :\n <emphasis>\n emphasis\n : (delimiters),\n (\n <emphasis>\n emphasis\n ), [\n <emphasis>\n emphasis\n ], <\n <emphasis>\n emphasis\n >, {\n <emphasis>\n emphasis\n } (open/close pairs)\n <emphasis>\n emphasis\n ., \n <emphasis>\n emphasis\n ,, \n <emphasis>\n emphasis\n !, and \n <emphasis>\n emphasis\n (closing delimiters),\n <paragraph>\n but not\n )*emphasis*(, ]*emphasis*[, >*emphasis*>, }*emphasis*{ (close/open pairs),\n (*), [*], '*' or '\"*\"' (\"quoted\" start-string),\n x*2* or 2*x* (alphanumeric char before),\n *args or * (escaped, whitespace behind start-string),\n or \n <emphasis>\n the* *stars* *inside\n (escaped, whitespace before end-string).\n <paragraph>\n However, '\n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n *\n args' will trigger a warning and may be problematic.\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"2\" line=\"13\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline emphasis start-string without end-string.\n <paragraph>\n what about \n <emphasis>\n this*\n ?\n",
"asserts_error": true
},
{
"file": "test_inline_markup.py",
"group": "emphasis",
"index": 5,
"line": 176,
"rst": "Quotes around inline markup:\n\n'*emphasis*' \"*emphasis*\" Straight,\n‘*emphasis*’ “*emphasis*” English, ...,\n« *emphasis* » ‹ *emphasis* › « *emphasis* » ‹ *emphasis* ›\n« *emphasis* » ‹ *emphasis* › French,\n„*emphasis*“ ‚*emphasis*‘ »*emphasis*« ›*emphasis*‹ German, Czech, ...,\n„*emphasis*” «*emphasis*» Romanian,\n“*emphasis*„ ‘*emphasis*‚ Greek,\n「*emphasis*」 『*emphasis*』traditional Chinese,\n”*emphasis*” ’*emphasis*’ »*emphasis*» ›*emphasis*› Swedish, Finnish,\n„*emphasis*” ‚*emphasis*’ Polish,\n„*emphasis*” »*emphasis*« ’*emphasis*’ Hungarian,\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Quotes around inline markup:\n <paragraph>\n '\n <emphasis>\n emphasis\n ' \"\n <emphasis>\n emphasis\n \" Straight,\n ‘\n <emphasis>\n emphasis\n ’ “\n <emphasis>\n emphasis\n ” English, ...,\n « \n <emphasis>\n emphasis\n » ‹ \n <emphasis>\n emphasis\n › « \n <emphasis>\n emphasis\n » ‹ \n <emphasis>\n emphasis\n ›\n « \n <emphasis>\n emphasis\n » ‹ \n <emphasis>\n emphasis\n › French,\n „\n <emphasis>\n emphasis\n “ ‚\n <emphasis>\n emphasis\n ‘ »\n <emphasis>\n emphasis\n « ›\n <emphasis>\n emphasis\n ‹ German, Czech, ...,\n „\n <emphasis>\n emphasis\n ” «\n <emphasis>\n emphasis\n » Romanian,\n “\n <emphasis>\n emphasis\n „ ‘\n <emphasis>\n emphasis\n ‚ Greek,\n 「\n <emphasis>\n emphasis\n 」 『\n <emphasis>\n emphasis\n 』traditional Chinese,\n ”\n <emphasis>\n emphasis\n ” ’\n <emphasis>\n emphasis\n ’ »\n <emphasis>\n emphasis\n » ›\n <emphasis>\n emphasis\n › Swedish, Finnish,\n „\n <emphasis>\n emphasis\n ” ‚\n <emphasis>\n emphasis\n ’ Polish,\n „\n <emphasis>\n emphasis\n ” »\n <emphasis>\n emphasis\n « ’\n <emphasis>\n emphasis\n ’ Hungarian,\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "emphasis",
"index": 6,
"line": 295,
"rst": "\nEmphasized asterisk: *\\**\n\nEmphasized double asterisk: *\\***\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Emphasized asterisk: \n <emphasis>\n *\n <paragraph>\n Emphasized double asterisk: \n <emphasis>\n **\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "strong",
"index": 0,
"line": 314,
"rst": "**strong**\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <strong>\n strong\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "strong",
"index": 1,
"line": 323,
"rst": "l'**strong** and l’**strong** with apostrophe\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n l'\n <strong>\n strong\n and l’\n <strong>\n strong\n with apostrophe\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "strong",
"index": 2,
"line": 337,
"rst": "quoted '**strong**', quoted \"**strong**\",\nquoted ‘**strong**’, quoted “**strong**”,\nquoted «**strong**»\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n quoted '\n <strong>\n strong\n ', quoted \"\n <strong>\n strong\n \",\n quoted ‘\n <strong>\n strong\n ’, quoted “\n <strong>\n strong\n ”,\n quoted «\n <strong>\n strong\n »\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "strong",
"index": 3,
"line": 364,
"rst": "\n(**strong**) but not (**) or '(** ' or x**2 or \\**kwargs or **\n\n(however, '**kwargs' will trigger a warning and may be problematic)\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n (\n <strong>\n strong\n ) but not (**) or '(** ' or x**2 or **kwargs or **\n <paragraph>\n (however, '\n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n **\n kwargs' will trigger a warning and may be problematic)\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"2\" line=\"4\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline strong start-string without end-string.\n",
"asserts_error": true
},
{
"file": "test_inline_markup.py",
"group": "strong",
"index": 4,
"line": 385,
"rst": "Strong asterisk: *****\n\nStrong double asterisk: ******\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Strong asterisk: \n <strong>\n *\n <paragraph>\n Strong double asterisk: \n <strong>\n **\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "strong",
"index": 5,
"line": 401,
"rst": "**strong without closing asterisks\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n **\n strong without closing asterisks\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline strong start-string without end-string.\n",
"asserts_error": true
},
{
"file": "test_inline_markup.py",
"group": "literal",
"index": 0,
"line": 417,
"rst": "``literal``\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <literal>\n literal\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "literal",
"index": 1,
"line": 426,
"rst": "\n``\\literal``\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <literal>\n \\literal\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "literal",
"index": 2,
"line": 435,
"rst": "\n``lite\\ral``\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <literal>\n lite\\ral\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "literal",
"index": 3,
"line": 444,
"rst": "\n``literal\\``\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <literal>\n literal\\\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "literal",
"index": 4,
"line": 453,
"rst": "l'``literal`` and l’``literal`` with apostrophe\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n l'\n <literal>\n literal\n and l’\n <literal>\n literal\n with apostrophe\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "literal",
"index": 5,
"line": 467,
"rst": "quoted '``literal``', quoted \"``literal``\",\nquoted ‘``literal``’, quoted “``literal``”,\nquoted «``literal``»\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n quoted '\n <literal>\n literal\n ', quoted \"\n <literal>\n literal\n \",\n quoted ‘\n <literal>\n literal\n ’, quoted “\n <literal>\n literal\n ”,\n quoted «\n <literal>\n literal\n »\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "literal",
"index": 6,
"line": 494,
"rst": "``'literal'`` with quotes, ``\"literal\"`` with quotes,\n``‘literal’`` with quotes, ``“literal”`` with quotes,\n``«literal»`` with quotes\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <literal>\n 'literal'\n with quotes, \n <literal>\n \"literal\"\n with quotes,\n <literal>\n ‘literal’\n with quotes, \n <literal>\n “literal”\n with quotes,\n <literal>\n «literal»\n with quotes\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "literal",
"index": 7,
"line": 518,
"rst": "\n``literal ``TeX quotes'' & \\backslash`` but not \"``\" or ``\n\n(however, ``standalone TeX quotes'' will trigger a warning\nand may be problematic)\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <literal>\n literal ``TeX quotes'' & \\backslash\n but not \"``\" or ``\n <paragraph>\n (however, \n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n ``\n standalone TeX quotes'' will trigger a warning\n and may be problematic)\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"2\" line=\"4\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline literal start-string without end-string.\n",
"asserts_error": true
},
{
"file": "test_inline_markup.py",
"group": "literal",
"index": 8,
"line": 540,
"rst": "Find the ```interpreted text``` in this paragraph!\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Find the \n <literal>\n `interpreted text`\n in this paragraph!\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "literal",
"index": 9,
"line": 551,
"rst": "``literal without closing backquotes\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n ``\n literal without closing backquotes\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline literal start-string without end-string.\n",
"asserts_error": true
},
{
"file": "test_inline_markup.py",
"group": "literal",
"index": 10,
"line": 564,
"rst": "\nPython ``list``\\s use square bracket syntax.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Python \n <literal>\n list\n s use square bracket syntax.\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "literal",
"index": 11,
"line": 575,
"rst": "\nBlank after opening `` not allowed.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Blank after opening `` not allowed.\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "literal",
"index": 12,
"line": 583,
"rst": "\nno blank ``after closing``continues`` literal.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n no blank \n <literal>\n after closing``continues\n literal.\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "literal",
"index": 13,
"line": 594,
"rst": "\ndot ``after closing``. is possible.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n dot \n <literal>\n after closing\n . is possible.\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "references",
"index": 0,
"line": 608,
"rst": "ref_\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference name=\"ref\" refname=\"ref\">\n ref\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "references",
"index": 1,
"line": 617,
"rst": "l'ref_ and l’ref_ with apostrophe\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n l'\n <reference name=\"ref\" refname=\"ref\">\n ref\n and l’\n <reference name=\"ref\" refname=\"ref\">\n ref\n with apostrophe\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "references",
"index": 2,
"line": 631,
"rst": "quoted 'ref_', quoted \"ref_\",\nquoted ‘ref_’, quoted “ref_”,\nquoted «ref_»,\nbut not 'ref ref'_, \"ref ref\"_, ‘ref ref’_,\n“ref ref”_, or «ref ref»_\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n quoted '\n <reference name=\"ref\" refname=\"ref\">\n ref\n ', quoted \"\n <reference name=\"ref\" refname=\"ref\">\n ref\n \",\n quoted ‘\n <reference name=\"ref\" refname=\"ref\">\n ref\n ’, quoted “\n <reference name=\"ref\" refname=\"ref\">\n ref\n ”,\n quoted «\n <reference name=\"ref\" refname=\"ref\">\n ref\n »,\n but not 'ref ref'_, \"ref ref\"_, ‘ref ref’_,\n “ref ref”_, or «ref ref»_\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "references",
"index": 3,
"line": 662,
"rst": "ref__\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference anonymous=\"1\" name=\"ref\">\n ref\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "references",
"index": 4,
"line": 671,
"rst": "l'ref__ and l’ref__ with apostrophe\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n l'\n <reference anonymous=\"1\" name=\"ref\">\n ref\n and l’\n <reference anonymous=\"1\" name=\"ref\">\n ref\n with apostrophe\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "references",
"index": 5,
"line": 685,
"rst": "quoted 'ref__', quoted \"ref__\",\nquoted ‘ref__’, quoted “ref__”,\nquoted «ref__»,\nbut not 'ref ref'__, \"ref ref\"__, ‘ref ref’__,\n“ref ref”__, or «ref ref»__\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n quoted '\n <reference anonymous=\"1\" name=\"ref\">\n ref\n ', quoted \"\n <reference anonymous=\"1\" name=\"ref\">\n ref\n \",\n quoted ‘\n <reference anonymous=\"1\" name=\"ref\">\n ref\n ’, quoted “\n <reference anonymous=\"1\" name=\"ref\">\n ref\n ”,\n quoted «\n <reference anonymous=\"1\" name=\"ref\">\n ref\n »,\n but not 'ref ref'__, \"ref ref\"__, ‘ref ref’__,\n “ref ref”__, or «ref ref»__\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "references",
"index": 6,
"line": 716,
"rst": "ref_, r_, r_e-f_, -ref_, and anonymousref__,\nbut not _ref_ or __attr__ or object.__attr__\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference name=\"ref\" refname=\"ref\">\n ref\n , \n <reference name=\"r\" refname=\"r\">\n r\n , \n <reference name=\"r_e-f\" refname=\"r_e-f\">\n r_e-f\n , -\n <reference name=\"ref\" refname=\"ref\">\n ref\n , and \n <reference anonymous=\"1\" name=\"anonymousref\">\n anonymousref\n ,\n but not _ref_ or __attr__ or object.__attr__\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "phrase_references",
"index": 0,
"line": 743,
"rst": "`phrase reference`_\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference name=\"phrase reference\" refname=\"phrase reference\">\n phrase reference\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "phrase_references",
"index": 1,
"line": 752,
"rst": "l'`phrase reference`_ and l’`phrase reference`_ with apostrophe\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n l'\n <reference name=\"phrase reference\" refname=\"phrase reference\">\n phrase reference\n and l’\n <reference name=\"phrase reference\" refname=\"phrase reference\">\n phrase reference\n with apostrophe\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "phrase_references",
"index": 2,
"line": 766,
"rst": "quoted '`phrase reference`_', quoted \"`phrase reference`_\",\nquoted ‘`phrase reference`_’,\nquoted “`phrase reference`_”,\nquoted «`phrase reference`_»\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n quoted '\n <reference name=\"phrase reference\" refname=\"phrase reference\">\n phrase reference\n ', quoted \"\n <reference name=\"phrase reference\" refname=\"phrase reference\">\n phrase reference\n \",\n quoted ‘\n <reference name=\"phrase reference\" refname=\"phrase reference\">\n phrase reference\n ’,\n quoted “\n <reference name=\"phrase reference\" refname=\"phrase reference\">\n phrase reference\n ”,\n quoted «\n <reference name=\"phrase reference\" refname=\"phrase reference\">\n phrase reference\n »\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "phrase_references",
"index": 3,
"line": 795,
"rst": "`'phrase reference'`_ with quotes, `\"phrase reference\"`_ with quotes,\n`‘phrase reference’`_ with quotes,\n`“phrase reference”`_ with quotes,\n`«phrase reference»`_ with quotes\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference name=\"'phrase reference'\" refname=\"'phrase reference'\">\n 'phrase reference'\n with quotes, \n <reference name=\"\"phrase reference\"\" refname=\"\"phrase reference\"\">\n \"phrase reference\"\n with quotes,\n <reference name=\"‘phrase reference’\" refname=\"‘phrase reference’\">\n ‘phrase reference’\n with quotes,\n <reference name=\"“phrase reference”\" refname=\"“phrase reference”\">\n “phrase reference”\n with quotes,\n <reference name=\"«phrase reference»\" refname=\"«phrase reference»\">\n «phrase reference»\n with quotes\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "phrase_references",
"index": 4,
"line": 820,
"rst": "`anonymous reference`__\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference anonymous=\"1\" name=\"anonymous reference\">\n anonymous reference\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "phrase_references",
"index": 5,
"line": 829,
"rst": "l'`anonymous reference`__ and l’`anonymous reference`__ with apostrophe\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n l'\n <reference anonymous=\"1\" name=\"anonymous reference\">\n anonymous reference\n and l’\n <reference anonymous=\"1\" name=\"anonymous reference\">\n anonymous reference\n with apostrophe\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "phrase_references",
"index": 6,
"line": 843,
"rst": "quoted '`anonymous reference`__', quoted \"`anonymous reference`__\",\nquoted ‘`anonymous reference`__’,\nquoted “`anonymous reference`__”,\nquoted «`anonymous reference`__»\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n quoted '\n <reference anonymous=\"1\" name=\"anonymous reference\">\n anonymous reference\n ', quoted \"\n <reference anonymous=\"1\" name=\"anonymous reference\">\n anonymous reference\n \",\n quoted ‘\n <reference anonymous=\"1\" name=\"anonymous reference\">\n anonymous reference\n ’,\n quoted “\n <reference anonymous=\"1\" name=\"anonymous reference\">\n anonymous reference\n ”,\n quoted «\n <reference anonymous=\"1\" name=\"anonymous reference\">\n anonymous reference\n »\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "phrase_references",
"index": 7,
"line": 872,
"rst": "`'anonymous reference'`__ with quotes, `\"anonymous reference\"`__ with quotes,\n`‘anonymous reference’`__ with quotes,\n`“anonymous reference”`__ with quotes,\n`«anonymous reference»`__ with quotes\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference anonymous=\"1\" name=\"'anonymous reference'\">\n 'anonymous reference'\n with quotes, \n <reference anonymous=\"1\" name=\"\"anonymous reference\"\">\n \"anonymous reference\"\n with quotes,\n <reference anonymous=\"1\" name=\"‘anonymous reference’\">\n ‘anonymous reference’\n with quotes,\n <reference anonymous=\"1\" name=\"“anonymous reference”\">\n “anonymous reference”\n with quotes,\n <reference anonymous=\"1\" name=\"«anonymous reference»\">\n «anonymous reference»\n with quotes\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "phrase_references",
"index": 8,
"line": 897,
"rst": "`phrase reference\nacross lines`_\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference name=\"phrase reference across lines\" refname=\"phrase reference across lines\">\n phrase reference\n across lines\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "phrase_references",
"index": 9,
"line": 908,
"rst": "`phrase\\`_ reference`_\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference name=\"phrase`_ reference\" refname=\"phrase`_ reference\">\n phrase`_ reference\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "phrase_references",
"index": 10,
"line": 917,
"rst": "Invalid phrase reference:\n\n:role:`phrase reference`_\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Invalid phrase reference:\n <paragraph>\n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n :role:`phrase reference`_\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"2\" line=\"3\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Mismatch: both interpreted text role prefix and reference suffix.\n",
"asserts_error": true
},
{
"file": "test_inline_markup.py",
"group": "phrase_references",
"index": 11,
"line": 933,
"rst": "Invalid phrase reference:\n\n`phrase reference`:role:_\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Invalid phrase reference:\n <paragraph>\n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n `phrase reference`:role:_\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"2\" line=\"3\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Mismatch: both interpreted text role suffix and reference suffix.\n",
"asserts_error": true
},
{
"file": "test_inline_markup.py",
"group": "phrase_references",
"index": 12,
"line": 949,
"rst": "`phrase reference_ without closing backquote\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n `\n phrase \n <reference name=\"reference\" refname=\"reference\">\n reference\n without closing backquote\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline interpreted text or phrase reference start-string without end-string.\n",
"asserts_error": true
},
{
"file": "test_inline_markup.py",
"group": "phrase_references",
"index": 13,
"line": 965,
"rst": "`anonymous phrase reference__ without closing backquote\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n `\n anonymous phrase \n <reference anonymous=\"1\" name=\"reference\">\n reference\n without closing backquote\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline interpreted text or phrase reference start-string without end-string.\n",
"asserts_error": true
},
{
"file": "test_inline_markup.py",
"group": "embedded_uris",
"index": 0,
"line": 984,
"rst": "`phrase reference <http://example.com>`_\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference name=\"phrase reference\" refuri=\"http://example.com\">\n phrase reference\n <target ids=\"phrase-reference\" names=\"phrase\\ reference\" refuri=\"http://example.com\">\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "embedded_uris",
"index": 1,
"line": 994,
"rst": "`anonymous reference <http://example.com>`__\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference name=\"anonymous reference\" refuri=\"http://example.com\">\n anonymous reference\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "embedded_uris",
"index": 2,
"line": 1003,
"rst": "`embedded URI on next line\n<http://example.com>`__\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference name=\"embedded URI on next line\" refuri=\"http://example.com\">\n embedded URI on next line\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "embedded_uris",
"index": 3,
"line": 1013,
"rst": "`embedded URI across lines <http://example.com/\nlong/path>`__\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference name=\"embedded URI across lines\" refuri=\"http://example.com/long/path\">\n embedded URI across lines\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "embedded_uris",
"index": 4,
"line": 1023,
"rst": "`embedded URI with whitespace <http://example.com/\nlong/path /and /whitespace>`__\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference name=\"embedded URI with whitespace\" refuri=\"http://example.com/long/path/and/whitespace\">\n embedded URI with whitespace\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "embedded_uris",
"index": 5,
"line": 1033,
"rst": "\n`embedded URI with escaped whitespace <http://example.com/a\\\nlong/path\\ and/some\\ escaped\\ whitespace>`__\n\n`<omitted\\ reference\\ text\\ with\\ escaped\\ whitespace>`__\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference name=\"embedded URI with escaped whitespace\" refuri=\"http://example.com/a long/path and/some escaped whitespace\">\n embedded URI with escaped whitespace\n <paragraph>\n <reference name=\"omitted reference text with escaped whitespace\" refuri=\"omitted reference text with escaped whitespace\">\n omitted reference text with escaped whitespace\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "embedded_uris",
"index": 6,
"line": 1048,
"rst": "`embedded email address <jdoe@example.com>`__\n\n`embedded email address broken across lines <jdoe\n@example.com>`__\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference name=\"embedded email address\" refuri=\"mailto:jdoe@example.com\">\n embedded email address\n <paragraph>\n <reference name=\"embedded email address broken across lines\" refuri=\"mailto:jdoe@example.com\">\n embedded email address broken across lines\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "embedded_uris",
"index": 7,
"line": 1063,
"rst": "\n`embedded URI with too much whitespace < http://example.com/\nlong/path /and /whitespace >`__\n\n`embedded URI with too much whitespace at end <http://example.com/\nlong/path /and /whitespace >`__\n\n`embedded URI with no preceding whitespace<http://example.com>`__\n\n`escaped URI \\<http://example.com>`__\n\nSee `HTML Anchors: \\<a>`_.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference anonymous=\"1\" name=\"embedded URI with too much whitespace < http://example.com/ long/path /and /whitespace >\">\n embedded URI with too much whitespace < http://example.com/\n long/path /and /whitespace >\n <paragraph>\n <reference anonymous=\"1\" name=\"embedded URI with too much whitespace at end <http://example.com/ long/path /and /whitespace >\">\n embedded URI with too much whitespace at end <http://example.com/\n long/path /and /whitespace >\n <paragraph>\n <reference anonymous=\"1\" name=\"embedded URI with no preceding whitespace<http://example.com>\">\n embedded URI with no preceding whitespace<http://example.com>\n <paragraph>\n <reference anonymous=\"1\" name=\"escaped URI <http://example.com>\">\n escaped URI <http://example.com>\n <paragraph>\n See \n <reference name=\"HTML Anchors: <a>\" refname=\"html anchors: <a>\">\n HTML Anchors: <a>\n .\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "embedded_uris",
"index": 8,
"line": 1098,
"rst": "Relative URIs' reference text can be omitted:\n\n`<reference>`_\n\n`<anonymous>`__\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Relative URIs' reference text can be omitted:\n <paragraph>\n <reference name=\"reference\" refuri=\"reference\">\n reference\n <target ids=\"reference\" names=\"reference\" refuri=\"reference\">\n <paragraph>\n <reference name=\"anonymous\" refuri=\"anonymous\">\n anonymous\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "embedded_uris",
"index": 9,
"line": 1117,
"rst": "\nEscape trailing low-line char in URIs:\n\n`<reference\\_>`_\n\n`<anonymous\\_>`__\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Escape trailing low-line char in URIs:\n <paragraph>\n <reference name=\"reference_\" refuri=\"reference_\">\n reference_\n <target ids=\"reference\" names=\"reference_\" refuri=\"reference_\">\n <paragraph>\n <reference name=\"anonymous_\" refuri=\"anonymous_\">\n anonymous_\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "embedded_uris",
"index": 10,
"line": 1136,
"rst": "Escape other char in URIs:\n\n`<reference\\:1>`_\n\n`<anonymous\\call>`__\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Escape other char in URIs:\n <paragraph>\n <reference name=\"reference:1\" refuri=\"reference:1\">\n reference:1\n <target ids=\"reference-1\" names=\"reference:1\" refuri=\"reference:1\">\n <paragraph>\n <reference name=\"anonymouscall\" refuri=\"anonymouscall\">\n anonymouscall\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "embedded_aliases",
"index": 0,
"line": 1158,
"rst": "`phrase reference <alias_>`_\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference name=\"phrase reference\" refname=\"alias\">\n phrase reference\n <target names=\"phrase\\ reference\" refname=\"alias\">\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "embedded_aliases",
"index": 1,
"line": 1168,
"rst": "`anonymous reference <alias_>`__\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference name=\"anonymous reference\" refname=\"alias\">\n anonymous reference\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "embedded_aliases",
"index": 2,
"line": 1177,
"rst": "`embedded alias on next line\n<alias_>`__\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference name=\"embedded alias on next line\" refname=\"alias\">\n embedded alias on next line\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "embedded_aliases",
"index": 3,
"line": 1187,
"rst": "`embedded alias across lines <alias\nphrase_>`__\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference name=\"embedded alias across lines\" refname=\"alias phrase\">\n embedded alias across lines\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "embedded_aliases",
"index": 4,
"line": 1197,
"rst": "`embedded alias with whitespace <alias\nlong phrase_>`__\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference name=\"embedded alias with whitespace\" refname=\"alias long phrase\">\n embedded alias with whitespace\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "embedded_aliases",
"index": 5,
"line": 1207,
"rst": "`<embedded alias with whitespace_>`__\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference name=\"embedded alias with whitespace\" refname=\"embedded alias with whitespace\">\n embedded alias with whitespace\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "embedded_aliases",
"index": 6,
"line": 1216,
"rst": "\n`no embedded alias (whitespace inside bracket) < alias_ >`__\n\n`no embedded alias (no preceding whitespace)<alias_>`__\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference anonymous=\"1\" name=\"no embedded alias (whitespace inside bracket) < alias_ >\">\n no embedded alias (whitespace inside bracket) < alias_ >\n <paragraph>\n <reference anonymous=\"1\" name=\"no embedded alias (no preceding whitespace)<alias_>\">\n no embedded alias (no preceding whitespace)<alias_>\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "embedded_aliases",
"index": 7,
"line": 1230,
"rst": "\n`anonymous reference <alias\\ with\\\\ escaped \\:characters_>`__\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference name=\"anonymous reference\" refname=\"aliaswith\\ escaped :characters\">\n anonymous reference\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "embedded_aliases",
"index": 8,
"line": 1239,
"rst": "\n`anonymous reference <alias\\ with\\\\ escaped \\:characters_>`__\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference name=\"anonymous reference\" refname=\"aliaswith\\ escaped :characters\">\n anonymous reference\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "inline_targets",
"index": 0,
"line": 1251,
"rst": "_`target`\n\nHere is _`another target` in some text. And _`yet\nanother target`, spanning lines.\n\n_`Here is a TaRgeT` with case and spacial difficulties.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <target ids=\"target\" names=\"target\">\n target\n <paragraph>\n Here is \n <target ids=\"another-target\" names=\"another\\ target\">\n another target\n in some text. And \n <target ids=\"yet-another-target\" names=\"yet\\ another\\ target\">\n yet\n another target\n , spanning lines.\n <paragraph>\n <target ids=\"here-is-a-target\" names=\"here\\ is\\ a\\ target\">\n Here is a TaRgeT\n with case and spacial difficulties.\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "inline_targets",
"index": 1,
"line": 1278,
"rst": "l'_`target1` and l’_`target2` with apostrophe\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n l'\n <target ids=\"target1\" names=\"target1\">\n target1\n and l’\n <target ids=\"target2\" names=\"target2\">\n target2\n with apostrophe\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "inline_targets",
"index": 2,
"line": 1292,
"rst": "quoted '_`target1`', quoted \"_`target2`\",\nquoted ‘_`target3`’, quoted “_`target4`”,\nquoted «_`target5`»\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n quoted '\n <target ids=\"target1\" names=\"target1\">\n target1\n ', quoted \"\n <target ids=\"target2\" names=\"target2\">\n target2\n \",\n quoted ‘\n <target ids=\"target3\" names=\"target3\">\n target3\n ’, quoted “\n <target ids=\"target4\" names=\"target4\">\n target4\n ”,\n quoted «\n <target ids=\"target5\" names=\"target5\">\n target5\n »\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "inline_targets",
"index": 3,
"line": 1319,
"rst": "_`'target1'` with quotes, _`\"target2\"` with quotes,\n_`‘target3’` with quotes, _`“target4”` with quotes,\n_`«target5»` with quotes\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <target ids=\"target1\" names=\"'target1'\">\n 'target1'\n with quotes, \n <target ids=\"target2\" names=\"\"target2\"\">\n \"target2\"\n with quotes,\n <target ids=\"target3\" names=\"‘target3’\">\n ‘target3’\n with quotes, \n <target ids=\"target4\" names=\"“target4”\">\n “target4”\n with quotes,\n <target ids=\"target5\" names=\"«target5»\">\n «target5»\n with quotes\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "inline_targets",
"index": 4,
"line": 1343,
"rst": "But this isn't a _target; targets require backquotes.\n\nAnd _`this`_ is just plain confusing.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n But this isn't a _target; targets require backquotes.\n <paragraph>\n And \n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n _`\n this`_ is just plain confusing.\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"2\" line=\"3\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline target start-string without end-string.\n",
"asserts_error": true
},
{
"file": "test_inline_markup.py",
"group": "inline_targets",
"index": 5,
"line": 1361,
"rst": "_`inline target without closing backquote\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n _`\n inline target without closing backquote\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline target start-string without end-string.\n",
"asserts_error": true
},
{
"file": "test_inline_markup.py",
"group": "footnote_reference",
"index": 0,
"line": 1377,
"rst": "[1]_\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <footnote_reference ids=\"footnote-reference-1\" refname=\"1\">\n 1\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "footnote_reference",
"index": 1,
"line": 1386,
"rst": "[#]_\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <footnote_reference auto=\"1\" ids=\"footnote-reference-1\">\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "footnote_reference",
"index": 2,
"line": 1394,
"rst": "[#label]_\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <footnote_reference auto=\"1\" ids=\"footnote-reference-1\" refname=\"label\">\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "footnote_reference",
"index": 3,
"line": 1402,
"rst": "[*]_\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <footnote_reference auto=\"*\" ids=\"footnote-reference-1\">\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "footnote_reference",
"index": 4,
"line": 1410,
"rst": "Adjacent footnote refs are not possible: [*]_[#label]_ [#]_[2]_ [1]_[*]_\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Adjacent footnote refs are not possible: [*]_[#label]_ [#]_[2]_ [1]_[*]_\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "citation_reference",
"index": 0,
"line": 1421,
"rst": "[citation]_\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <citation_reference ids=\"citation-reference-1\" refname=\"citation\">\n citation\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "citation_reference",
"index": 1,
"line": 1430,
"rst": "[citation]_ and [cit-ation]_ and [cit.ation]_ and [CIT1]_ but not [CIT 1]_\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <citation_reference ids=\"citation-reference-1\" refname=\"citation\">\n citation\n and \n <citation_reference ids=\"citation-reference-2\" refname=\"cit-ation\">\n cit-ation\n and \n <citation_reference ids=\"citation-reference-3\" refname=\"cit.ation\">\n cit.ation\n and \n <citation_reference ids=\"citation-reference-4\" refname=\"cit1\">\n CIT1\n but not [CIT 1]_\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "citation_reference",
"index": 2,
"line": 1449,
"rst": "Adjacent citation refs are not possible: [citation]_[CIT1]_\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Adjacent citation refs are not possible: [citation]_[CIT1]_\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "substitution_references",
"index": 0,
"line": 1460,
"rst": "|subref|\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <substitution_reference refname=\"subref\">\n subref\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "substitution_references",
"index": 1,
"line": 1469,
"rst": "|subref|_ and |subref|__\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference refname=\"subref\">\n <substitution_reference refname=\"subref\">\n subref\n and \n <reference anonymous=\"1\">\n <substitution_reference refname=\"subref\">\n subref\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "substitution_references",
"index": 2,
"line": 1483,
"rst": "|substitution reference|\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <substitution_reference refname=\"substitution reference\">\n substitution reference\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "substitution_references",
"index": 3,
"line": 1492,
"rst": "|substitution\nreference|\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <substitution_reference refname=\"substitution reference\">\n substitution\n reference\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "substitution_references",
"index": 4,
"line": 1503,
"rst": "|substitution reference without closing verbar\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n |\n substitution reference without closing verbar\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline substitution_reference start-string without end-string.\n",
"asserts_error": true
},
{
"file": "test_inline_markup.py",
"group": "substitution_references",
"index": 5,
"line": 1516,
"rst": "first | then || and finally |||\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n first | then || and finally |||\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "substitution_references",
"index": 6,
"line": 1524,
"rst": "Substitution reference with |mix|.\n\n.. |mix| replace:: text and hyperlink-reference_\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Substitution reference with \n <substitution_reference refname=\"mix\">\n mix\n .\n <substitution_definition names=\"mix\">\n text and \n <reference name=\"hyperlink-reference\" refname=\"hyperlink-reference\">\n hyperlink-reference\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "standalone_hyperlink",
"index": 0,
"line": 1544,
"rst": "http://www.standalone.hyperlink.com\n\nhttp:/one-slash-only.absolute.path\n\n[http://example.com]\n\n(http://example.com)\n\n<http://example.com>\n\nhttp://[1080:0:0:0:8:800:200C:417A]/IPv6address.html\n\nhttp://[3ffe:2a00:100:7031::1] (the final \"]\" is ambiguous in text)\n\nhttp://[3ffe:2a00:100:7031::1]/\n\nmailto:someone@somewhere.com\n\nnews:comp.lang.python\n\nAn email address in a sentence: someone@somewhere.com.\n\nftp://ends.with.a.period.\n\n(a.question.mark@end?)\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference refuri=\"http://www.standalone.hyperlink.com\">\n http://www.standalone.hyperlink.com\n <paragraph>\n <reference refuri=\"http:/one-slash-only.absolute.path\">\n http:/one-slash-only.absolute.path\n <paragraph>\n [\n <reference refuri=\"http://example.com\">\n http://example.com\n ]\n <paragraph>\n (\n <reference refuri=\"http://example.com\">\n http://example.com\n )\n <paragraph>\n <\n <reference refuri=\"http://example.com\">\n http://example.com\n >\n <paragraph>\n <reference refuri=\"http://[1080:0:0:0:8:800:200C:417A]/IPv6address.html\">\n http://[1080:0:0:0:8:800:200C:417A]/IPv6address.html\n <paragraph>\n <reference refuri=\"http://[3ffe:2a00:100:7031::1\">\n http://[3ffe:2a00:100:7031::1\n ] (the final \"]\" is ambiguous in text)\n <paragraph>\n <reference refuri=\"http://[3ffe:2a00:100:7031::1]/\">\n http://[3ffe:2a00:100:7031::1]/\n <paragraph>\n <reference refuri=\"mailto:someone@somewhere.com\">\n mailto:someone@somewhere.com\n <paragraph>\n <reference refuri=\"news:comp.lang.python\">\n news:comp.lang.python\n <paragraph>\n An email address in a sentence: \n <reference refuri=\"mailto:someone@somewhere.com\">\n someone@somewhere.com\n .\n <paragraph>\n <reference refuri=\"ftp://ends.with.a.period\">\n ftp://ends.with.a.period\n .\n <paragraph>\n (\n <reference refuri=\"mailto:a.question.mark@end\">\n a.question.mark@end\n ?)\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "standalone_hyperlink",
"index": 1,
"line": 1625,
"rst": "\nValid URLs with escaped markup characters:\n\nhttp://example.com/\\*content\\*/whatever\n\nhttp://example.com/\\*content*/whatever\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Valid URLs with escaped markup characters:\n <paragraph>\n <reference refuri=\"http://example.com/*content*/whatever\">\n http://example.com/*content*/whatever\n <paragraph>\n <reference refuri=\"http://example.com/*content*/whatever\">\n http://example.com/*content*/whatever\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "standalone_hyperlink",
"index": 2,
"line": 1643,
"rst": "Valid URLs may end with punctuation inside \"<>\":\n\n<http://example.org/ends-with-dot.>\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Valid URLs may end with punctuation inside \"<>\":\n <paragraph>\n <\n <reference refuri=\"http://example.org/ends-with-dot.\">\n http://example.org/ends-with-dot.\n >\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "standalone_hyperlink",
"index": 3,
"line": 1658,
"rst": "Valid URLs with interesting endings:\n\nhttp://example.org/ends-with-pluses++\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Valid URLs with interesting endings:\n <paragraph>\n <reference refuri=\"http://example.org/ends-with-pluses++\">\n http://example.org/ends-with-pluses++\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "standalone_hyperlink",
"index": 4,
"line": 1671,
"rst": "None of these are standalone hyperlinks (their \"schemes\"\nare not recognized): signal:noise, a:b.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n None of these are standalone hyperlinks (their \"schemes\"\n are not recognized): signal:noise, a:b.\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "standalone_hyperlink",
"index": 5,
"line": 1681,
"rst": "Escaped email addresses are not recognized: test\\@example.org\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Escaped email addresses are not recognized: test@example.org\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "markup_recognition_rules",
"index": 0,
"line": 1692,
"rst": "__This__ should be left alone.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n __This__ should be left alone.\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "markup_recognition_rules",
"index": 1,
"line": 1700,
"rst": "\nCharacter-level m\\ *a*\\ **r**\\ ``k``\\ `u`:title:\\p\nwith backslash-escaped whitespace, including new\\\nlines.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Character-level m\n <emphasis>\n a\n <strong>\n r\n <literal>\n k\n <title_reference>\n u\n p\n with backslash-escaped whitespace, including newlines.\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "markup_recognition_rules",
"index": 2,
"line": 1720,
"rst": "text-*separated*‐*by*‑*various*‒*dashes*–*and*—*hyphens*.\n¿*punctuation*? ¡*examples*! *no-break-space* .\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n text-\n <emphasis>\n separated\n ‐\n <emphasis>\n by\n ‑\n <emphasis>\n various\n ‒\n <emphasis>\n dashes\n –\n <emphasis>\n and\n —\n <emphasis>\n hyphens\n .\n ¿\n <emphasis>\n punctuation\n ? ¡\n <emphasis>\n examples\n ! \n <emphasis>\n no-break-space\n .\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "markup_recognition_rules",
"index": 3,
"line": 1759,
"rst": "text separated by\n*newline*\nor *space* or one of\n *NO-BREAK SPACE* ,\n *OGHAM SPACE MARK* ,\n *EN QUAD* ,\n *EM QUAD* ,\n *EN SPACE* ,\n *EM SPACE* ,\n *THREE-PER-EM SPACE* ,\n *FOUR-PER-EM SPACE* ,\n *SIX-PER-EM SPACE* ,\n *FIGURE SPACE* ,\n *PUNCTUATION SPACE* ,\n *THIN SPACE* ,\n *HAIR SPACE* ,\n *NARROW NO-BREAK SPACE* ,\n *MEDIUM MATHEMATICAL SPACE* ,\n *IDEOGRAPHIC SPACE* ,\n
*LINE SEPARATOR*
\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n text separated by\n <emphasis>\n newline\n \n or \n <emphasis>\n space\n or one of\n \n <emphasis>\n NO-BREAK SPACE\n ,\n \n <emphasis>\n OGHAM SPACE MARK\n ,\n \n <emphasis>\n EN QUAD\n ,\n \n <emphasis>\n EM QUAD\n ,\n \n <emphasis>\n EN SPACE\n ,\n \n <emphasis>\n EM SPACE\n ,\n \n <emphasis>\n THREE-PER-EM SPACE\n ,\n \n <emphasis>\n FOUR-PER-EM SPACE\n ,\n \n <emphasis>\n SIX-PER-EM SPACE\n ,\n \n <emphasis>\n FIGURE SPACE\n ,\n \n <emphasis>\n PUNCTUATION SPACE\n ,\n \n <emphasis>\n THIN SPACE\n ,\n \n <emphasis>\n HAIR SPACE\n ,\n \n <emphasis>\n NARROW NO-BREAK SPACE\n ,\n \n <emphasis>\n MEDIUM MATHEMATICAL SPACE\n ,\n \n <emphasis>\n IDEOGRAPHIC SPACE\n ,\n <paragraph>\n <emphasis>\n LINE SEPARATOR\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "markup_recognition_rules",
"index": 4,
"line": 1860,
"rst": "inline markup separated by non-ASCII whitespace\n **NO-BREAK SPACE** , ``NO-BREAK SPACE`` , `NO-BREAK SPACE` ,\n **EN QUAD** , ``EN QUAD`` , `EN QUAD` ,\n **NARROW NBSP** , ``NARROW NBSP`` , `NARROW NBSP` ,\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n inline markup separated by non-ASCII whitespace\n \n <strong>\n NO-BREAK SPACE\n , \n <literal>\n NO-BREAK SPACE\n , \n <title_reference>\n NO-BREAK SPACE\n ,\n \n <strong>\n EN QUAD\n , \n <literal>\n EN QUAD\n , \n <title_reference>\n EN QUAD\n ,\n \n <strong>\n NARROW NBSP\n , \n <literal>\n NARROW NBSP\n , \n <title_reference>\n NARROW NBSP\n ,\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "markup_recognition_rules",
"index": 5,
"line": 1901,
"rst": "no inline markup due to whitespace inside and behind: *\nnewline\n*\n* space * or one of\n* NO-BREAK SPACE *\n* OGHAM SPACE MARK *\n* EN QUAD *\n* EM QUAD *\n* EN SPACE *\n* EM SPACE *\n* THREE-PER-EM SPACE *\n* FOUR-PER-EM SPACE *\n* SIX-PER-EM SPACE *\n* FIGURE SPACE *\n* PUNCTUATION SPACE *\n* THIN SPACE *\n* HAIR SPACE *\n* NARROW NO-BREAK SPACE *\n* MEDIUM MATHEMATICAL SPACE *\n* IDEOGRAPHIC SPACE *\n*
LINE SEPARATOR
*\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n no inline markup due to whitespace inside and behind: *\n newline\n *\n * space * or one of\n * NO-BREAK SPACE *\n * OGHAM SPACE MARK *\n * EN QUAD *\n * EM QUAD *\n * EN SPACE *\n * EM SPACE *\n * THREE-PER-EM SPACE *\n * FOUR-PER-EM SPACE *\n * SIX-PER-EM SPACE *\n * FIGURE SPACE *\n * PUNCTUATION SPACE *\n * THIN SPACE *\n * HAIR SPACE *\n * NARROW NO-BREAK SPACE *\n * MEDIUM MATHEMATICAL SPACE *\n * IDEOGRAPHIC SPACE *\n *\n LINE SEPARATOR\n *\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "markup_recognition_rules",
"index": 6,
"line": 1951,
"rst": "no inline markup because of non-ASCII whitespace following /preceding the markup\n** NO-BREAK SPACE ** `` NO-BREAK SPACE `` ` NO-BREAK SPACE `\n** EN QUAD ** `` EN QUAD `` ` EN QUAD `\n** NARROW NBSP ** `` NARROW NBSP `` ` NARROW NBSP `\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n no inline markup because of non-ASCII whitespace following /preceding the markup\n ** NO-BREAK SPACE ** `` NO-BREAK SPACE `` ` NO-BREAK SPACE `\n ** EN QUAD ** `` EN QUAD `` ` EN QUAD `\n ** NARROW NBSP ** `` NARROW NBSP `` ` NARROW NBSP `\n",
"asserts_error": false
},
{
"file": "test_inline_markup.py",
"group": "markup_recognition_rules",
"index": 7,
"line": 1966,
"rst": "\"Quoted\" markup start-string (matched openers & closers) -> no markup:\n\n'*' \"*\" (*) <*> [*] {*}\n⁅*⁆\n\nSome international quoting styles:\n‘*’ “*” English, ...,\n„*“ ‚*‘ »*« ›*‹ German, Czech, ...,\n„*” «*» Romanian,\n“*„ ‘*‚ Greek,\n「*」 『*』traditional Chinese,\n”*” ’*’ »*» ›*› Swedish, Finnish,\n„*” ‚*’ Polish,\n„*” »*« ’*’ Hungarian,\n\nBut this is „*’ emphasized »*‹.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n \"Quoted\" markup start-string (matched openers & closers) -> no markup:\n <paragraph>\n '*' \"*\" (*) <*> [*] {*}\n ⁅*⁆\n <paragraph>\n Some international quoting styles:\n ‘*’ “*” English, ...,\n „*“ ‚*‘ »*« ›*‹ German, Czech, ...,\n „*” «*» Romanian,\n “*„ ‘*‚ Greek,\n 「*」 『*』traditional Chinese,\n ”*” ’*’ »*» ›*› Swedish, Finnish,\n „*” ‚*’ Polish,\n „*” »*« ’*’ Hungarian,\n <paragraph>\n But this is „\n <emphasis>\n ’ emphasized »\n ‹.\n",
"asserts_error": false
},
{
"file": "test_interpreted.py",
"group": "basics",
"index": 0,
"line": 46,
"rst": "`interpreted`\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <title_reference>\n interpreted\n",
"asserts_error": false
},
{
"file": "test_interpreted.py",
"group": "basics",
"index": 1,
"line": 55,
"rst": ":title:`interpreted`\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <title_reference>\n interpreted\n",
"asserts_error": false
},
{
"file": "test_interpreted.py",
"group": "basics",
"index": 2,
"line": 64,
"rst": "`interpreted`:title:\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <title_reference>\n interpreted\n",
"asserts_error": false
},
{
"file": "test_interpreted.py",
"group": "basics",
"index": 3,
"line": 73,
"rst": "`interpreted \\`title``\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <title_reference>\n interpreted `title`\n",
"asserts_error": false
},
{
"file": "test_interpreted.py",
"group": "basics",
"index": 4,
"line": 82,
"rst": ":title:`:not-role: interpreted`\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <title_reference>\n :not-role: interpreted\n",
"asserts_error": false
},
{
"file": "test_interpreted.py",
"group": "basics",
"index": 5,
"line": 91,
"rst": "`interpreted` but not \\`interpreted` [`] or ({[`] or [`]}) or `\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <title_reference>\n interpreted\n but not `interpreted` [`] or ({[`] or [`]}) or `\n",
"asserts_error": false
},
{
"file": "test_interpreted.py",
"group": "basics",
"index": 6,
"line": 101,
"rst": "`interpreted`-text `interpreted`: text `interpreted`:text `text`'s interpreted\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <title_reference>\n interpreted\n -text \n <title_reference>\n interpreted\n : text \n <title_reference>\n interpreted\n :text \n <title_reference>\n text\n 's interpreted\n",
"asserts_error": false
},
{
"file": "test_interpreted.py",
"group": "basics",
"index": 7,
"line": 120,
"rst": "`interpreted without closing backquote\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n `\n interpreted without closing backquote\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline interpreted text or phrase reference start-string without end-string.\n",
"asserts_error": true
},
{
"file": "test_interpreted.py",
"group": "basics",
"index": 8,
"line": 133,
"rst": "`interpreted`:not a role if it contains whitespace:\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <title_reference>\n interpreted\n :not a role if it contains whitespace:\n",
"asserts_error": false
},
{
"file": "test_interpreted.py",
"group": "basics",
"index": 9,
"line": 143,
"rst": ":title:`` (empty interpreted text not recognized)\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n :title:`` (empty interpreted text not recognized)\n",
"asserts_error": false
},
{
"file": "test_interpreted.py",
"group": "basics",
"index": 10,
"line": 151,
"rst": ":title:`\\ ` (interpreted text containing empty string)\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <title_reference>\n (interpreted text containing empty string)\n",
"asserts_error": false
},
{
"file": "test_interpreted.py",
"group": "basics",
"index": 11,
"line": 160,
"rst": "`\\ `:title: (interpreted text containing empty string (postfix))\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <title_reference>\n (interpreted text containing empty string (postfix))\n",
"asserts_error": false
},
{
"file": "test_interpreted.py",
"group": "basics",
"index": 12,
"line": 169,
"rst": ":title:`\\ non-empty`\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <title_reference>\n non-empty\n",
"asserts_error": false
},
{
"file": "test_interpreted.py",
"group": "basics",
"index": 13,
"line": 178,
"rst": ":title:`\\ ` (trailing unquoted space)\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n :title:\n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n `\n ` (trailing unquoted space)\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline interpreted text or phrase reference start-string without end-string.\n",
"asserts_error": true
},
{
"file": "test_interpreted.py",
"group": "basics",
"index": 14,
"line": 192,
"rst": "Explicit roles for standard inline markup:\n:emphasis:`emphasis`,\n:strong:`strong`,\n:literal:`inline literal text`.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Explicit roles for standard inline markup:\n <emphasis>\n emphasis\n ,\n <strong>\n strong\n ,\n <literal>\n inline literal text\n .\n",
"asserts_error": false
},
{
"file": "test_interpreted.py",
"group": "basics",
"index": 15,
"line": 212,
"rst": "Simple explicit roles:\n:ab:`abbreviation`,\n:ac:`acronym`,\n:sup:`superscript`,\n:sub:`subscript`,\n:title:`title reference`.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Simple explicit roles:\n <abbreviation>\n abbreviation\n ,\n <acronym>\n acronym\n ,\n <superscript>\n superscript\n ,\n <subscript>\n subscript\n ,\n <title_reference>\n title reference\n .\n",
"asserts_error": false
},
{
"file": "test_interpreted.py",
"group": "code",
"index": 0,
"line": 243,
"rst": "Code role for inline code snippets:\n:code:`$\u0007lpha = \\int_0^\\infty f(x) dx$`.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Code role for inline code snippets:\n <literal classes=\"code\">\n $\u0007lpha = \\int_0^\\infty f(x) dx$\n .\n",
"asserts_error": false
},
{
"file": "test_interpreted.py",
"group": "code_parsing",
"index": 0,
"line": 258,
"rst": ".. role:: tex(code)\n :language: latex\n\nCustom role based on code role:\n:tex:`$\u0007lpha = f(x)$`.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Custom role based on code role:\n <literal classes=\"code tex latex\">\n <inline classes=\"literal string\">\n $\n <inline classes=\"name builtin\">\n \u0007lpha \n <inline classes=\"operator\">\n =\n <inline classes=\"name builtin\">\n f\n <inline classes=\"operator\">\n (\n <inline classes=\"name builtin\">\n x\n <inline classes=\"operator\">\n )\n <inline classes=\"literal string\">\n $\n .\n",
"asserts_error": false
},
{
"file": "test_interpreted.py",
"group": "code_parsing",
"index": 1,
"line": 288,
"rst": "Custom role based on code role:\n\n.. role:: python(code)\n :language: python3\n :class: testclass\n\nPython code :python:`print(\"The end\")`.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Custom role based on code role:\n <paragraph>\n Python code \n <literal classes=\"code testclass python3\">\n <inline classes=\"name builtin\">\n print\n <inline classes=\"punctuation\">\n (\n <inline classes=\"literal string double\">\n \"The end\"\n <inline classes=\"punctuation\">\n )\n .\n",
"asserts_error": false
},
{
"file": "test_interpreted.py",
"group": "references",
"index": 0,
"line": 317,
"rst": ":PEP:`0`\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference refuri=\"https://peps.python.org/pep-0000\">\n PEP 0\n",
"asserts_error": false
},
{
"file": "test_interpreted.py",
"group": "references",
"index": 1,
"line": 326,
"rst": ":PEP:`-1`\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n :PEP:`-1`\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n PEP number must be a number from 0 to 9999; \"-1\" is invalid.\n",
"asserts_error": true
},
{
"file": "test_interpreted.py",
"group": "references",
"index": 2,
"line": 338,
"rst": ":RFC:`2822`\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference refuri=\"https://tools.ietf.org/html/rfc2822.html\">\n RFC 2822\n",
"asserts_error": false
},
{
"file": "test_interpreted.py",
"group": "references",
"index": 3,
"line": 347,
"rst": ":RFC:`0`\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n :RFC:`0`\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n RFC number must be a number greater than or equal to 1; \"0\" is invalid.\n",
"asserts_error": true
},
{
"file": "test_interpreted.py",
"group": "references",
"index": 4,
"line": 359,
"rst": ":RFC:`2822#section1`\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <reference refuri=\"https://tools.ietf.org/html/rfc2822.html#section1\">\n RFC 2822\n",
"asserts_error": false
},
{
"file": "test_interpreted.py",
"group": "unknown_roles",
"index": 0,
"line": 371,
"rst": ":role:`interpreted`\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n :role:`interpreted`\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n No role entry for \"role\" in module \"docutils.parsers.rst.languages.en\".\n Trying \"role\" as canonical role name.\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Unknown interpreted text role \"role\".\n",
"asserts_error": true
},
{
"file": "test_interpreted.py",
"group": "unknown_roles",
"index": 1,
"line": 387,
"rst": "`interpreted`:role:\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n `interpreted`:role:\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n No role entry for \"role\" in module \"docutils.parsers.rst.languages.en\".\n Trying \"role\" as canonical role name.\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Unknown interpreted text role \"role\".\n",
"asserts_error": true
},
{
"file": "test_interpreted.py",
"group": "unknown_roles",
"index": 2,
"line": 403,
"rst": ":role:`interpreted`:role:\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n :role:`interpreted`:role:\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Multiple roles in interpreted text (both prefix and suffix present; only one allowed).\n",
"asserts_error": true
},
{
"file": "test_interpreted.py",
"group": "unknown_roles",
"index": 3,
"line": 415,
"rst": ":very.long-role_name:`interpreted`\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n :very.long-role_name:`interpreted`\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n No role entry for \"very.long-role_name\" in module \"docutils.parsers.rst.languages.en\".\n Trying \"very.long-role_name\" as canonical role name.\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Unknown interpreted text role \"very.long-role_name\".\n",
"asserts_error": true
},
{
"file": "test_interpreted.py",
"group": "unknown_roles",
"index": 4,
"line": 431,
"rst": ":restructuredtext-unimplemented-role:`interpreted`\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n :restructuredtext-unimplemented-role:`interpreted`\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n No role entry for \"restructuredtext-unimplemented-role\" in module \"docutils.parsers.rst.languages.en\".\n Trying \"restructuredtext-unimplemented-role\" as canonical role name.\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Interpreted text role \"restructuredtext-unimplemented-role\" not implemented.\n",
"asserts_error": true
},
{
"file": "test_interpreted_fr.py",
"group": "basics",
"index": 0,
"line": 49,
"rst": "Simple explicit roles and english fallbacks:\n:acronym:`acronym`,\n:exp:`superscript`,\n:ind:`subscript`,\n:titre:`title reference`.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Simple explicit roles and english fallbacks:\n <acronym>\n acronym\n ,\n <superscript>\n superscript\n ,\n <subscript>\n subscript\n ,\n <title_reference>\n title reference\n .\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n No role entry for \"acronym\" in module \"docutils.parsers.rst.languages.fr\".\n Using English fallback for role \"acronym\".\n",
"asserts_error": true
},
{
"file": "test_line_blocks.py",
"group": "line_blocks",
"index": 0,
"line": 42,
"rst": "| This is a line block.\n| Line breaks are *preserved*.\n\n| This is a second line block.\n\n| This is a third.\n",
"doctree": "<document source=\"test data\">\n <line_block>\n <line>\n This is a line block.\n <line>\n Line breaks are \n <emphasis>\n preserved\n .\n <line_block>\n <line>\n This is a second line block.\n <line_block>\n <line>\n This is a third.\n",
"asserts_error": false
},
{
"file": "test_line_blocks.py",
"group": "line_blocks",
"index": 1,
"line": 67,
"rst": "| In line blocks,\n| Initial indentation is *also* preserved.\n",
"doctree": "<document source=\"test data\">\n <line_block>\n <line>\n In line blocks,\n <line_block>\n <line>\n Initial indentation is \n <emphasis>\n also\n preserved.\n",
"asserts_error": false
},
{
"file": "test_line_blocks.py",
"group": "line_blocks",
"index": 2,
"line": 83,
"rst": "| Individual lines in line blocks\n *may* wrap, as indicated by the lack of a vertical bar prefix.\n| These are called \"continuation lines\".\n",
"doctree": "<document source=\"test data\">\n <line_block>\n <line>\n Individual lines in line blocks\n <emphasis>\n may\n wrap, as indicated by the lack of a vertical bar prefix.\n <line>\n These are called \"continuation lines\".\n",
"asserts_error": false
},
{
"file": "test_line_blocks.py",
"group": "line_blocks",
"index": 3,
"line": 99,
"rst": "| Inline markup in line blocks may also wrap *to\n continuation lines*.\n| But not to following lines.\n",
"doctree": "<document source=\"test data\">\n <line_block>\n <line>\n Inline markup in line blocks may also wrap \n <emphasis>\n to\n continuation lines\n .\n <line>\n But not to following lines.\n",
"asserts_error": false
},
{
"file": "test_line_blocks.py",
"group": "line_blocks",
"index": 4,
"line": 116,
"rst": "\\| This is not a line block.\nThe vertical bar is simply part of a paragraph.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n | This is not a line block.\n The vertical bar is simply part of a paragraph.\n",
"asserts_error": false
},
{
"file": "test_line_blocks.py",
"group": "line_blocks",
"index": 5,
"line": 126,
"rst": "| This line block is incomplete.\nThere should be a blank line before this paragraph.\n",
"doctree": "<document source=\"test data\">\n <line_block>\n <line>\n This line block is incomplete.\n <system_message level=\"2\" line=\"2\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Line block ends without a blank line.\n <paragraph>\n There should be a blank line before this paragraph.\n",
"asserts_error": true
},
{
"file": "test_line_blocks.py",
"group": "line_blocks",
"index": 6,
"line": 141,
"rst": "| This line block contains\n|\n| blank lines.\n",
"doctree": "<document source=\"test data\">\n <line_block>\n <line>\n This line block contains\n <line>\n <line>\n blank lines.\n",
"asserts_error": false
},
{
"file": "test_line_blocks.py",
"group": "line_blocks",
"index": 7,
"line": 155,
"rst": "| The blank lines in this block\n| \n| \n| have bogus spaces.\n",
"doctree": "<document source=\"test data\">\n <line_block>\n <line>\n The blank lines in this block\n <line>\n <line>\n <line>\n have bogus spaces.\n",
"asserts_error": false
},
{
"file": "test_line_blocks.py",
"group": "line_blocks",
"index": 8,
"line": 171,
"rst": "| Initial indentation is also significant and preserved:\n|\n| Indented 4 spaces\n| Not indented\n| Indented 2 spaces\n| Indented 4 spaces\n| Only one space\n|\n| Continuation lines may be indented less\n than their base lines.\n",
"doctree": "<document source=\"test data\">\n <line_block>\n <line>\n Initial indentation is also significant and preserved:\n <line>\n <line_block>\n <line>\n Indented 4 spaces\n <line>\n Not indented\n <line_block>\n <line_block>\n <line>\n Indented 2 spaces\n <line_block>\n <line>\n Indented 4 spaces\n <line>\n Only one space\n <line>\n <line_block>\n <line>\n Continuation lines may be indented less\n than their base lines.\n",
"asserts_error": false
},
{
"file": "test_line_blocks.py",
"group": "line_blocks",
"index": 9,
"line": 209,
"rst": "|\n| This block begins and ends with blank lines.\n|\n",
"doctree": "<document source=\"test data\">\n <line_block>\n <line>\n <line>\n This block begins and ends with blank lines.\n <line>\n",
"asserts_error": false
},
{
"file": "test_line_blocks.py",
"group": "line_blocks",
"index": 10,
"line": 222,
"rst": "This is not\n| a line block.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n This is not\n | a line block.\n",
"asserts_error": false
},
{
"file": "test_line_blocks.py",
"group": "line_blocks",
"index": 11,
"line": 232,
"rst": "| The first line is indented.\n| The second line is more indented.\n",
"doctree": "<document source=\"test data\">\n <line_block>\n <line>\n The first line is indented.\n <line_block>\n <line>\n The second line is more indented.\n",
"asserts_error": false
},
{
"file": "test_line_blocks.py",
"group": "line_blocks",
"index": 12,
"line": 245,
"rst": "| The first line is indented.\n| The second line is less indented.\n",
"doctree": "<document source=\"test data\">\n <line_block>\n <line_block>\n <line>\n The first line is indented.\n <line>\n The second line is less indented.\n",
"asserts_error": false
},
{
"file": "test_line_blocks.py",
"group": "line_blocks",
"index": 13,
"line": 258,
"rst": "|This is not\n|a line block\n\n| This is an\n|incomplete line block.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n |\n This is not\n <problematic ids=\"problematic-2\" refid=\"system-message-2\">\n |\n a line block\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline substitution_reference start-string without end-string.\n <system_message backrefs=\"problematic-2\" ids=\"system-message-2\" level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline substitution_reference start-string without end-string.\n <line_block>\n <line>\n This is an\n <system_message level=\"2\" line=\"5\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Line block ends without a blank line.\n <paragraph>\n <problematic ids=\"problematic-3\" refid=\"system-message-3\">\n |\n incomplete line block.\n <system_message backrefs=\"problematic-3\" ids=\"system-message-3\" level=\"2\" line=\"5\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline substitution_reference start-string without end-string.\n",
"asserts_error": true
},
{
"file": "test_line_blocks.py",
"group": "line_blocks",
"index": 14,
"line": 294,
"rst": "| Inline markup *may not\n| wrap* over several lines.\n",
"doctree": "<document source=\"test data\">\n <line_block>\n <line>\n Inline markup \n <problematic ids=\"problematic-1\" refid=\"system-message-1\">\n *\n may not\n <line>\n wrap* over several lines.\n <system_message backrefs=\"problematic-1\" ids=\"system-message-1\" level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Inline emphasis start-string without end-string.\n",
"asserts_error": true
},
{
"file": "test_line_blocks.py",
"group": "line_blocks",
"index": 15,
"line": 312,
"rst": "| * Block level markup\n| * is not recognized.\n",
"doctree": "<document source=\"test data\">\n <line_block>\n <line>\n * Block level markup\n <line>\n * is not recognized.\n",
"asserts_error": false
},
{
"file": "test_line_blocks.py",
"group": "line_blocks",
"index": 16,
"line": 324,
"rst": "System messages can appear in place of lines:\n\n| `uff <test1>`_\n| `uff <test2>`_\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n System messages can appear in place of lines:\n <line_block>\n <line>\n <reference name=\"uff\" refuri=\"test1\">\n uff\n <target dupnames=\"uff\" ids=\"uff\" refuri=\"test1\">\n <system_message backrefs=\"uff-1\" level=\"2\" line=\"3\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Duplicate explicit target name: \"uff\".\n <line>\n <reference name=\"uff\" refuri=\"test2\">\n uff\n <target dupnames=\"uff\" ids=\"uff-1\" refuri=\"test2\">\n",
"asserts_error": true
},
{
"file": "test_literal_blocks.py",
"group": "indented_literal_blocks",
"index": 0,
"line": 42,
"rst": "A paragraph::\n\n A literal block.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n A paragraph:\n <literal_block xml:space=\"preserve\">\n A literal block.\n",
"asserts_error": false
},
{
"file": "test_literal_blocks.py",
"group": "indented_literal_blocks",
"index": 1,
"line": 54,
"rst": "A paragraph with a space after the colons:: \n\n A literal block.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n A paragraph with a space after the colons:\n <literal_block xml:space=\"preserve\">\n A literal block.\n",
"asserts_error": false
},
{
"file": "test_literal_blocks.py",
"group": "indented_literal_blocks",
"index": 2,
"line": 66,
"rst": "A paragraph::\n\n A literal block.\n\nAnother paragraph::\n\n Another literal block.\n With two blank lines following.\n\n\nA final paragraph.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n A paragraph:\n <literal_block xml:space=\"preserve\">\n A literal block.\n <paragraph>\n Another paragraph:\n <literal_block xml:space=\"preserve\">\n Another literal block.\n With two blank lines following.\n <paragraph>\n A final paragraph.\n",
"asserts_error": false
},
{
"file": "test_literal_blocks.py",
"group": "indented_literal_blocks",
"index": 3,
"line": 93,
"rst": "A paragraph\non more than\none line::\n\n A literal block.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n A paragraph\n on more than\n one line:\n <literal_block xml:space=\"preserve\">\n A literal block.\n",
"asserts_error": false
},
{
"file": "test_literal_blocks.py",
"group": "indented_literal_blocks",
"index": 4,
"line": 109,
"rst": "A paragraph\non more than\none line::\n A literal block\n with no blank line above.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n A paragraph\n on more than\n one line:\n <system_message level=\"3\" line=\"4\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Unexpected indentation.\n <literal_block xml:space=\"preserve\">\n A literal block\n with no blank line above.\n",
"asserts_error": true
},
{
"file": "test_literal_blocks.py",
"group": "indented_literal_blocks",
"index": 5,
"line": 129,
"rst": "A paragraph::\n\n A literal block.\nno blank line\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n A paragraph:\n <literal_block xml:space=\"preserve\">\n A literal block.\n <system_message level=\"2\" line=\"4\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Literal block ends without a blank line; unexpected unindent.\n <paragraph>\n no blank line\n",
"asserts_error": true
},
{
"file": "test_literal_blocks.py",
"group": "indented_literal_blocks",
"index": 6,
"line": 147,
"rst": "\nA paragraph\\\\::\n\n A literal block.\n\nA paragraph\\::\n\n Not a literal block.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n A paragraph\\:\n <literal_block xml:space=\"preserve\">\n A literal block.\n <paragraph>\n A paragraph::\n <block_quote>\n <paragraph>\n Not a literal block.\n",
"asserts_error": false
},
{
"file": "test_literal_blocks.py",
"group": "indented_literal_blocks",
"index": 7,
"line": 167,
"rst": "\n\\\\::\n\n A literal block.\n\n\\::\n\n Not a literal block.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n \\:\n <literal_block xml:space=\"preserve\">\n A literal block.\n <paragraph>\n ::\n <block_quote>\n <paragraph>\n Not a literal block.\n",
"asserts_error": false
},
{
"file": "test_literal_blocks.py",
"group": "indented_literal_blocks",
"index": 8,
"line": 187,
"rst": "A paragraph: ::\n\n A literal block.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n A paragraph:\n <literal_block xml:space=\"preserve\">\n A literal block.\n",
"asserts_error": false
},
{
"file": "test_literal_blocks.py",
"group": "indented_literal_blocks",
"index": 9,
"line": 199,
"rst": "A paragraph:\n\n::\n\n A literal block.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n A paragraph:\n <literal_block xml:space=\"preserve\">\n A literal block.\n",
"asserts_error": false
},
{
"file": "test_literal_blocks.py",
"group": "indented_literal_blocks",
"index": 10,
"line": 213,
"rst": "A paragraph:\n::\n\n A literal block.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"1\" line=\"2\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Possible title underline, too short for the title.\n Treating it as ordinary text because it's so short.\n <paragraph>\n A paragraph:\n <literal_block xml:space=\"preserve\">\n A literal block.\n",
"asserts_error": true
},
{
"file": "test_literal_blocks.py",
"group": "indented_literal_blocks",
"index": 11,
"line": 230,
"rst": "A paragraph:\n\n::\n\n A literal block.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n A paragraph:\n <literal_block xml:space=\"preserve\">\n A literal block.\n",
"asserts_error": false
},
{
"file": "test_literal_blocks.py",
"group": "indented_literal_blocks",
"index": 12,
"line": 244,
"rst": "A paragraph::\n\nNot a literal block.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n A paragraph:\n <system_message level=\"2\" line=\"3\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Literal block expected; none found.\n <paragraph>\n Not a literal block.\n",
"asserts_error": true
},
{
"file": "test_literal_blocks.py",
"group": "indented_literal_blocks",
"index": 13,
"line": 259,
"rst": "A paragraph::\n\n A wonky literal block.\n Literal line 2.\n\n Literal line 3.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n A paragraph:\n <literal_block xml:space=\"preserve\">\n A wonky literal block.\n Literal line 2.\n \n Literal line 3.\n",
"asserts_error": false
},
{
"file": "test_literal_blocks.py",
"group": "indented_literal_blocks",
"index": 14,
"line": 277,
"rst": "EOF, even though a literal block is indicated::\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n EOF, even though a literal block is indicated:\n <system_message level=\"2\" line=\"2\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Literal block expected; none found.\n",
"asserts_error": true
},
{
"file": "test_literal_blocks.py",
"group": "quoted_literal_blocks",
"index": 0,
"line": 291,
"rst": "A paragraph::\n\n> A literal block.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n A paragraph:\n <literal_block xml:space=\"preserve\">\n > A literal block.\n",
"asserts_error": false
},
{
"file": "test_literal_blocks.py",
"group": "quoted_literal_blocks",
"index": 1,
"line": 303,
"rst": "A paragraph::\n\n\n> A literal block.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n A paragraph:\n <literal_block xml:space=\"preserve\">\n > A literal block.\n",
"asserts_error": false
},
{
"file": "test_literal_blocks.py",
"group": "quoted_literal_blocks",
"index": 2,
"line": 316,
"rst": "A paragraph::\n\n> A literal block.\n> Line 2.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n A paragraph:\n <literal_block xml:space=\"preserve\">\n > A literal block.\n > Line 2.\n",
"asserts_error": false
},
{
"file": "test_literal_blocks.py",
"group": "quoted_literal_blocks",
"index": 3,
"line": 330,
"rst": "A paragraph::\n\n> A literal block.\n Indented line.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n A paragraph:\n <literal_block xml:space=\"preserve\">\n > A literal block.\n <system_message level=\"3\" line=\"4\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Unexpected indentation.\n <block_quote>\n <paragraph>\n Indented line.\n",
"asserts_error": true
},
{
"file": "test_literal_blocks.py",
"group": "quoted_literal_blocks",
"index": 4,
"line": 349,
"rst": "A paragraph::\n\n> A literal block.\nText.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n A paragraph:\n <literal_block xml:space=\"preserve\">\n > A literal block.\n <system_message level=\"3\" line=\"4\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Inconsistent literal block quoting.\n <paragraph>\n Text.\n",
"asserts_error": true
},
{
"file": "test_literal_blocks.py",
"group": "quoted_literal_blocks",
"index": 5,
"line": 367,
"rst": "A paragraph::\n\n> A literal block.\n$ Inconsistent line.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n A paragraph:\n <literal_block xml:space=\"preserve\">\n > A literal block.\n <system_message level=\"3\" line=\"4\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Inconsistent literal block quoting.\n <paragraph>\n $ Inconsistent line.\n",
"asserts_error": true
},
{
"file": "test_option_lists.py",
"group": "option_lists",
"index": 0,
"line": 44,
"rst": "Short options:\n\n-a option -a\n\n-b file option -b\n\n-c name option -c\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Short options:\n <option_list>\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n -a\n <description>\n <paragraph>\n option -a\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n -b\n <option_argument delimiter=\" \">\n file\n <description>\n <paragraph>\n option -b\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n -c\n <option_argument delimiter=\" \">\n name\n <description>\n <paragraph>\n option -c\n",
"asserts_error": false
},
{
"file": "test_option_lists.py",
"group": "option_lists",
"index": 1,
"line": 87,
"rst": "Long options:\n\n--aaaa option --aaaa\n--bbbb=file option --bbbb\n--cccc name option --cccc\n--d-e-f-g option --d-e-f-g\n--h_i_j_k option --h_i_j_k\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Long options:\n <option_list>\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n --aaaa\n <description>\n <paragraph>\n option --aaaa\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n --bbbb\n <option_argument delimiter=\"=\">\n file\n <description>\n <paragraph>\n option --bbbb\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n --cccc\n <option_argument delimiter=\" \">\n name\n <description>\n <paragraph>\n option --cccc\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n --d-e-f-g\n <description>\n <paragraph>\n option --d-e-f-g\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n --h_i_j_k\n <description>\n <paragraph>\n option --h_i_j_k\n",
"asserts_error": false
},
{
"file": "test_option_lists.py",
"group": "option_lists",
"index": 2,
"line": 146,
"rst": "Old GNU-style options:\n\n+a option +a\n\n+b file option +b\n\n+c name option +c\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Old GNU-style options:\n <option_list>\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n +a\n <description>\n <paragraph>\n option +a\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n +b\n <option_argument delimiter=\" \">\n file\n <description>\n <paragraph>\n option +b\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n +c\n <option_argument delimiter=\" \">\n name\n <description>\n <paragraph>\n option +c\n",
"asserts_error": false
},
{
"file": "test_option_lists.py",
"group": "option_lists",
"index": 3,
"line": 189,
"rst": "VMS/DOS-style options:\n\n/A option /A\n/B file option /B\n/CCC option /CCC\n/DDD string option /DDD\n/EEE=int option /EEE\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n VMS/DOS-style options:\n <option_list>\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n /A\n <description>\n <paragraph>\n option /A\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n /B\n <option_argument delimiter=\" \">\n file\n <description>\n <paragraph>\n option /B\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n /CCC\n <description>\n <paragraph>\n option /CCC\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n /DDD\n <option_argument delimiter=\" \">\n string\n <description>\n <paragraph>\n option /DDD\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n /EEE\n <option_argument delimiter=\"=\">\n int\n <description>\n <paragraph>\n option /EEE\n",
"asserts_error": false
},
{
"file": "test_option_lists.py",
"group": "option_lists",
"index": 4,
"line": 250,
"rst": "Mixed short, long, and VMS/DOS options:\n\n-a option -a\n--bbbb=file option -bbbb\n/C option /C\n--dddd name option --dddd\n-e string option -e\n/F file option /F\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Mixed short, long, and VMS/DOS options:\n <option_list>\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n -a\n <description>\n <paragraph>\n option -a\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n --bbbb\n <option_argument delimiter=\"=\">\n file\n <description>\n <paragraph>\n option -bbbb\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n /C\n <description>\n <paragraph>\n option /C\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n --dddd\n <option_argument delimiter=\" \">\n name\n <description>\n <paragraph>\n option --dddd\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n -e\n <option_argument delimiter=\" \">\n string\n <description>\n <paragraph>\n option -e\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n /F\n <option_argument delimiter=\" \">\n file\n <description>\n <paragraph>\n option /F\n",
"asserts_error": false
},
{
"file": "test_option_lists.py",
"group": "option_lists",
"index": 5,
"line": 322,
"rst": "Aliased options:\n\n-a, --aaaa, /A option -a, --aaaa, /A\n-b file, --bbbb=file, /B file option -b, --bbbb, /B\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Aliased options:\n <option_list>\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n -a\n <option>\n <option_string>\n --aaaa\n <option>\n <option_string>\n /A\n <description>\n <paragraph>\n option -a, --aaaa, /A\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n -b\n <option_argument delimiter=\" \">\n file\n <option>\n <option_string>\n --bbbb\n <option_argument delimiter=\"=\">\n file\n <option>\n <option_string>\n /B\n <option_argument delimiter=\" \">\n file\n <description>\n <paragraph>\n option -b, --bbbb, /B\n",
"asserts_error": false
},
{
"file": "test_option_lists.py",
"group": "option_lists",
"index": 6,
"line": 368,
"rst": "Multiple lines in descriptions, aligned:\n\n-a option -a, line 1\n line 2\n-b file option -b, line 1\n line 2\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Multiple lines in descriptions, aligned:\n <option_list>\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n -a\n <description>\n <paragraph>\n option -a, line 1\n line 2\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n -b\n <option_argument delimiter=\" \">\n file\n <description>\n <paragraph>\n option -b, line 1\n line 2\n",
"asserts_error": false
},
{
"file": "test_option_lists.py",
"group": "option_lists",
"index": 7,
"line": 402,
"rst": "Multiple lines in descriptions, not aligned:\n\n-a option -a, line 1\n line 2\n-b file option -b, line 1\n line 2\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Multiple lines in descriptions, not aligned:\n <option_list>\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n -a\n <description>\n <paragraph>\n option -a, line 1\n line 2\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n -b\n <option_argument delimiter=\" \">\n file\n <description>\n <paragraph>\n option -b, line 1\n line 2\n",
"asserts_error": false
},
{
"file": "test_option_lists.py",
"group": "option_lists",
"index": 8,
"line": 436,
"rst": "Descriptions begin on next line:\n\n-a\n option -a, line 1\n line 2\n-b file\n option -b, line 1\n line 2\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Descriptions begin on next line:\n <option_list>\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n -a\n <description>\n <paragraph>\n option -a, line 1\n line 2\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n -b\n <option_argument delimiter=\" \">\n file\n <description>\n <paragraph>\n option -b, line 1\n line 2\n",
"asserts_error": false
},
{
"file": "test_option_lists.py",
"group": "option_lists",
"index": 9,
"line": 472,
"rst": "Multiple body elements in descriptions:\n\n-a option -a, para 1\n\n para 2\n-b file\n option -b, para 1\n\n para 2\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Multiple body elements in descriptions:\n <option_list>\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n -a\n <description>\n <paragraph>\n option -a, para 1\n <paragraph>\n para 2\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n -b\n <option_argument delimiter=\" \">\n file\n <description>\n <paragraph>\n option -b, para 1\n <paragraph>\n para 2\n",
"asserts_error": false
},
{
"file": "test_option_lists.py",
"group": "option_lists",
"index": 10,
"line": 511,
"rst": "--option\nempty item above, no blank line\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n --option\n empty item above, no blank line\n",
"asserts_error": false
},
{
"file": "test_option_lists.py",
"group": "option_lists",
"index": 11,
"line": 521,
"rst": "An option list using equals:\n\n--long1=arg1 Description 1\n--long2=arg2 Description 2\n\nAn option list using spaces:\n\n--long1 arg1 Description 1\n--long2 arg2 Description 2\n\nAn option list using mixed delimiters:\n\n--long1=arg1 Description 1\n--long2 arg2 Description 2\n\nAn option list using mixed delimiters in one line:\n\n--long1=arg1, --long2 arg2 Description\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n An option list using equals:\n <option_list>\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n --long1\n <option_argument delimiter=\"=\">\n arg1\n <description>\n <paragraph>\n Description 1\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n --long2\n <option_argument delimiter=\"=\">\n arg2\n <description>\n <paragraph>\n Description 2\n <paragraph>\n An option list using spaces:\n <option_list>\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n --long1\n <option_argument delimiter=\" \">\n arg1\n <description>\n <paragraph>\n Description 1\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n --long2\n <option_argument delimiter=\" \">\n arg2\n <description>\n <paragraph>\n Description 2\n <paragraph>\n An option list using mixed delimiters:\n <option_list>\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n --long1\n <option_argument delimiter=\"=\">\n arg1\n <description>\n <paragraph>\n Description 1\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n --long2\n <option_argument delimiter=\" \">\n arg2\n <description>\n <paragraph>\n Description 2\n <paragraph>\n An option list using mixed delimiters in one line:\n <option_list>\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n --long1\n <option_argument delimiter=\"=\">\n arg1\n <option>\n <option_string>\n --long2\n <option_argument delimiter=\" \">\n arg2\n <description>\n <paragraph>\n Description\n",
"asserts_error": false
},
{
"file": "test_option_lists.py",
"group": "option_lists",
"index": 12,
"line": 631,
"rst": "Some edge cases:\n\n--option=arg arg too many arguments\n\n--option=arg,arg not supported (yet?)\n\n--option=arg=arg too many arguments\n\n--option arg arg too many arguments\n\n-a letter arg2 too many arguments\n\n/A letter arg2 too many arguments\n\n--option= argument missing\n\n--=argument option missing\n\n-- everything missing\n\n- this should be a bullet list item\n\nThese next ones should be simple paragraphs:\n\n-1\n\n--option\n\n--1\n\n-1 and this one too.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Some edge cases:\n <paragraph>\n --option=arg arg too many arguments\n <paragraph>\n --option=arg,arg not supported (yet?)\n <paragraph>\n --option=arg=arg too many arguments\n <paragraph>\n --option arg arg too many arguments\n <paragraph>\n -a letter arg2 too many arguments\n <paragraph>\n /A letter arg2 too many arguments\n <paragraph>\n --option= argument missing\n <paragraph>\n --=argument option missing\n <paragraph>\n -- everything missing\n <bullet_list bullet=\"-\">\n <list_item>\n <paragraph>\n this should be a bullet list item\n <paragraph>\n These next ones should be simple paragraphs:\n <paragraph>\n -1\n <paragraph>\n --option\n <paragraph>\n --1\n <paragraph>\n -1 and this one too.\n",
"asserts_error": false
},
{
"file": "test_option_lists.py",
"group": "option_lists",
"index": 13,
"line": 701,
"rst": "Complex optargs:\n\n--source-url=<URL> Use the supplied <URL> verbatim.\n--output-encoding=<name[:handler]>, -o<name[:handler]>\n Specify the text encoding for output.\n--af=<filter1[=parameter1:parameter2:...],filter2,...>\n Setup a chain of audio filters.\n Option argument containing delimiter ``=``.\n-f <[path]filename> Send output to file.\n-d <src dest> Use diff from <src> to <dest>.\n--point=<x y z> 3D coordinates.\n--vector <\"x, y, z\"> Another option expecting 3 arguments.\n--cvs=<'a[, b[, ...]]]'>\n Comma separated arguments.\n-g <a, , c> Complex arg with empty list element.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Complex optargs:\n <option_list>\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n --source-url\n <option_argument delimiter=\"=\">\n <URL>\n <description>\n <paragraph>\n Use the supplied <URL> verbatim.\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n --output-encoding\n <option_argument delimiter=\"=\">\n <name[:handler]>\n <option>\n <option_string>\n -o\n <option_argument delimiter=\"\">\n <name[:handler]>\n <description>\n <paragraph>\n Specify the text encoding for output.\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n --af\n <option_argument delimiter=\"=\">\n <filter1[=parameter1:parameter2:...],filter2,...>\n <description>\n <paragraph>\n Setup a chain of audio filters.\n Option argument containing delimiter \n <literal>\n =\n .\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n -f\n <option_argument delimiter=\" \">\n <[path]filename>\n <description>\n <paragraph>\n Send output to file.\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n -d\n <option_argument delimiter=\" \">\n <src dest>\n <description>\n <paragraph>\n Use diff from <src> to <dest>.\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n --point\n <option_argument delimiter=\"=\">\n <x y z>\n <description>\n <paragraph>\n 3D coordinates.\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n --vector\n <option_argument delimiter=\" \">\n <\"x, y, z\">\n <description>\n <paragraph>\n Another option expecting 3 arguments.\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n --cvs\n <option_argument delimiter=\"=\">\n <'a[, b[, ...]]]'>\n <description>\n <paragraph>\n Comma separated arguments.\n <option_list_item>\n <option_group>\n <option>\n <option_string>\n -g\n <option_argument delimiter=\" \">\n <a, , c>\n <description>\n <paragraph>\n Complex arg with empty list element.\n",
"asserts_error": false
},
{
"file": "test_option_lists.py",
"group": "option_lists",
"index": 14,
"line": 823,
"rst": "Incorrect option syntax → no option list.\n\n-f, , --force Empty synonym.\n-f <a, , b Unbalanced angle bracket.\n-f a, , b> Unbalanced angle bracket.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Incorrect option syntax → no option list.\n <paragraph>\n -f, , --force Empty synonym.\n -f <a, , b Unbalanced angle bracket.\n -f a, , b> Unbalanced angle bracket.\n",
"asserts_error": false
},
{
"file": "test_outdenting.py",
"group": "outdenting",
"index": 0,
"line": 42,
"rst": "Anywhere a paragraph would have an effect on the current\nindentation level, a comment or list item should also.\n\n+ bullet\n\nThis paragraph ends the bullet list item before a block quote.\n\n Block quote.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Anywhere a paragraph would have an effect on the current\n indentation level, a comment or list item should also.\n <bullet_list bullet=\"+\">\n <list_item>\n <paragraph>\n bullet\n <paragraph>\n This paragraph ends the bullet list item before a block quote.\n <block_quote>\n <paragraph>\n Block quote.\n",
"asserts_error": false
},
{
"file": "test_outdenting.py",
"group": "outdenting",
"index": 1,
"line": 67,
"rst": "+ bullet\n\n.. Comments swallow up all indented text following.\n\n (Therefore this is not a) block quote.\n\n- bullet\n\n If we want a block quote after this bullet list item,\n we need to use an empty comment:\n\n..\n\n Block quote.\n",
"doctree": "<document source=\"test data\">\n <bullet_list bullet=\"+\">\n <list_item>\n <paragraph>\n bullet\n <comment xml:space=\"preserve\">\n Comments swallow up all indented text following.\n \n (Therefore this is not a) block quote.\n <bullet_list bullet=\"-\">\n <list_item>\n <paragraph>\n bullet\n <paragraph>\n If we want a block quote after this bullet list item,\n we need to use an empty comment:\n <comment xml:space=\"preserve\">\n <block_quote>\n <paragraph>\n Block quote.\n",
"asserts_error": false
},
{
"file": "test_paragraphs.py",
"group": "paragraphs",
"index": 0,
"line": 42,
"rst": "A paragraph.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n A paragraph.\n",
"asserts_error": false
},
{
"file": "test_paragraphs.py",
"group": "paragraphs",
"index": 1,
"line": 50,
"rst": "Paragraph 1.\n\nParagraph 2.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Paragraph 1.\n <paragraph>\n Paragraph 2.\n",
"asserts_error": false
},
{
"file": "test_paragraphs.py",
"group": "paragraphs",
"index": 2,
"line": 62,
"rst": "Line 1.\nLine 2.\nLine 3.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Line 1.\n Line 2.\n Line 3.\n",
"asserts_error": false
},
{
"file": "test_paragraphs.py",
"group": "paragraphs",
"index": 3,
"line": 74,
"rst": "Paragraph 1, Line 1.\nLine 2.\nLine 3.\n\nParagraph 2, Line 1.\nLine 2.\nLine 3.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Paragraph 1, Line 1.\n Line 2.\n Line 3.\n <paragraph>\n Paragraph 2, Line 1.\n Line 2.\n Line 3.\n",
"asserts_error": false
},
{
"file": "test_paragraphs.py",
"group": "paragraphs",
"index": 4,
"line": 94,
"rst": "A. Einstein was a really\nsmart dude.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n A. Einstein was a really\n smart dude.\n",
"asserts_error": false
},
{
"file": "test_root_prefix.py",
"group": "include-root",
"index": 0,
"line": 58,
"rst": ".. include:: /include 11.txt\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n some text\n",
"asserts_error": false
},
{
"file": "test_root_prefix.py",
"group": "include-root",
"index": 1,
"line": 75,
"rst": ".. include:: /include 11.txt\n :parser: rst\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n some text\n",
"asserts_error": false
},
{
"file": "test_root_prefix.py",
"group": "include-root",
"index": 4,
"line": 103,
"rst": ".. CSV-table::\n :file: /include 11.txt\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"1\">\n <colspec colwidth=\"100\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n some text\n",
"asserts_error": false
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 0,
"line": 42,
"rst": "Title\n=====\n\nParagraph.\n",
"doctree": "<document source=\"test data\">\n <section ids=\"title\" names=\"title\">\n <title>\n Title\n <paragraph>\n Paragraph.\n",
"asserts_error": false
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 1,
"line": 56,
"rst": "Title\n=====\nParagraph (no blank line).\n",
"doctree": "<document source=\"test data\">\n <section ids=\"title\" names=\"title\">\n <title>\n Title\n <paragraph>\n Paragraph (no blank line).\n",
"asserts_error": false
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 2,
"line": 69,
"rst": "Paragraph.\n\nTitle\n=====\n\nParagraph.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Paragraph.\n <section ids=\"title\" names=\"title\">\n <title>\n Title\n <paragraph>\n Paragraph.\n",
"asserts_error": false
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 3,
"line": 87,
"rst": "Test unexpected section titles.\n\n Title\n =====\n Paragraph.\n\n -----\n Title\n -----\n Paragraph.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Test unexpected section titles.\n <block_quote>\n <system_message level=\"4\" line=\"4\" source=\"test data\" type=\"SEVERE\">\n <paragraph>\n Unexpected section title.\n <literal_block xml:space=\"preserve\">\n Title\n =====\n <paragraph>\n Paragraph.\n <system_message level=\"4\" line=\"7\" source=\"test data\" type=\"SEVERE\">\n <paragraph>\n Unexpected section title or transition.\n <literal_block xml:space=\"preserve\">\n -----\n <system_message level=\"4\" line=\"9\" source=\"test data\" type=\"SEVERE\">\n <paragraph>\n Unexpected section title.\n <literal_block xml:space=\"preserve\">\n Title\n -----\n <paragraph>\n Paragraph.\n",
"asserts_error": true
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 4,
"line": 126,
"rst": "Title\n====\n\nTest short underline.\n",
"doctree": "<document source=\"test data\">\n <section ids=\"title\" names=\"title\">\n <title>\n Title\n <system_message level=\"2\" line=\"2\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Title underline too short.\n <literal_block xml:space=\"preserve\">\n Title\n ====\n <paragraph>\n Test short underline.\n",
"asserts_error": true
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 5,
"line": 146,
"rst": "à with combining varia\n======================\n\nDo not count combining chars in title column width.\n",
"doctree": "<document source=\"test data\">\n <section ids=\"a-with-combining-varia\" names=\"à\\ with\\ combining\\ varia\">\n <title>\n à with combining varia\n <paragraph>\n Do not count combining chars in title column width.\n",
"asserts_error": false
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 6,
"line": 160,
"rst": "=====\nTitle\n=====\n\nTest overline title.\n",
"doctree": "<document source=\"test data\">\n <section ids=\"title\" names=\"title\">\n <title>\n Title\n <paragraph>\n Test overline title.\n",
"asserts_error": false
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 7,
"line": 175,
"rst": "=======\n Title\n=======\n\nTest overline title with inset.\n",
"doctree": "<document source=\"test data\">\n <section ids=\"title\" names=\"title\">\n <title>\n Title\n <paragraph>\n Test overline title with inset.\n",
"asserts_error": false
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 8,
"line": 190,
"rst": "========================\n Test Missing Underline\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"4\" line=\"1\" source=\"test data\" type=\"SEVERE\">\n <paragraph>\n Incomplete section title.\n <literal_block xml:space=\"preserve\">\n ========================\n Test Missing Underline\n",
"asserts_error": true
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 9,
"line": 203,
"rst": "========================\n Test Missing Underline\n\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"4\" line=\"1\" source=\"test data\" type=\"SEVERE\">\n <paragraph>\n Missing matching underline for section title overline.\n <literal_block xml:space=\"preserve\">\n ========================\n Test Missing Underline\n",
"asserts_error": true
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 10,
"line": 217,
"rst": "=======\n Title\n\nTest missing underline, with paragraph.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"4\" line=\"1\" source=\"test data\" type=\"SEVERE\">\n <paragraph>\n Missing matching underline for section title overline.\n <literal_block xml:space=\"preserve\">\n =======\n Title\n <paragraph>\n Test missing underline, with paragraph.\n",
"asserts_error": true
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 11,
"line": 234,
"rst": "=======\n Long Title\n=======\n\nTest long title and space normalization.\n",
"doctree": "<document source=\"test data\">\n <section ids=\"long-title\" names=\"long\\ title\">\n <title>\n Long Title\n <system_message level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Title overline too short.\n <literal_block xml:space=\"preserve\">\n =======\n Long Title\n =======\n <paragraph>\n Test long title and space normalization.\n",
"asserts_error": true
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 12,
"line": 256,
"rst": "=======\n Title\n-------\n\nParagraph.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"4\" line=\"1\" source=\"test data\" type=\"SEVERE\">\n <paragraph>\n Title overline & underline mismatch.\n <literal_block xml:space=\"preserve\">\n =======\n Title\n -------\n <paragraph>\n Paragraph.\n",
"asserts_error": true
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 13,
"line": 275,
"rst": "========================\n\n========================\n\nTest missing titles; blank line in-between.\n\n========================\n\n========================\n",
"doctree": "<document source=\"test data\">\n <transition>\n <transition>\n <paragraph>\n Test missing titles; blank line in-between.\n <transition>\n <transition>\n",
"asserts_error": false
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 14,
"line": 295,
"rst": "========================\n========================\n\nTest missing titles; nothing in-between.\n\n========================\n========================\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Invalid section title or transition marker.\n <literal_block xml:space=\"preserve\">\n ========================\n ========================\n <paragraph>\n Test missing titles; nothing in-between.\n <system_message level=\"3\" line=\"6\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Invalid section title or transition marker.\n <literal_block xml:space=\"preserve\">\n ========================\n ========================\n",
"asserts_error": true
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 15,
"line": 321,
"rst": ".. Test return to existing, highest-level section (Title 3).\n\nTitle 1\n=======\nParagraph 1.\n\nTitle 2\n-------\nParagraph 2.\n\nTitle 3\n=======\nParagraph 3.\n\nTitle 4\n-------\nParagraph 4.\n",
"doctree": "<document source=\"test data\">\n <comment xml:space=\"preserve\">\n Test return to existing, highest-level section (Title 3).\n <section ids=\"title-1\" names=\"title\\ 1\">\n <title>\n Title 1\n <paragraph>\n Paragraph 1.\n <section ids=\"title-2\" names=\"title\\ 2\">\n <title>\n Title 2\n <paragraph>\n Paragraph 2.\n <section ids=\"title-3\" names=\"title\\ 3\">\n <title>\n Title 3\n <paragraph>\n Paragraph 3.\n <section ids=\"title-4\" names=\"title\\ 4\">\n <title>\n Title 4\n <paragraph>\n Paragraph 4.\n",
"asserts_error": false
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 16,
"line": 365,
"rst": "Test return to existing, highest-level section (Title 3, with overlines).\n\n=======\nTitle 1\n=======\nParagraph 1.\n\n-------\nTitle 2\n-------\nParagraph 2.\n\n=======\nTitle 3\n=======\nParagraph 3.\n\n-------\nTitle 4\n-------\nParagraph 4.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Test return to existing, highest-level section (Title 3, with overlines).\n <section ids=\"title-1\" names=\"title\\ 1\">\n <title>\n Title 1\n <paragraph>\n Paragraph 1.\n <section ids=\"title-2\" names=\"title\\ 2\">\n <title>\n Title 2\n <paragraph>\n Paragraph 2.\n <section ids=\"title-3\" names=\"title\\ 3\">\n <title>\n Title 3\n <paragraph>\n Paragraph 3.\n <section ids=\"title-4\" names=\"title\\ 4\">\n <title>\n Title 4\n <paragraph>\n Paragraph 4.\n",
"asserts_error": false
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 17,
"line": 413,
"rst": "Test return to existing, higher-level section (Title 4).\n\nTitle 1\n=======\nParagraph 1.\n\nTitle 2\n-------\nParagraph 2.\n\nTitle 3\n```````\nParagraph 3.\n\nTitle 4\n-------\nParagraph 4.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Test return to existing, higher-level section (Title 4).\n <section ids=\"title-1\" names=\"title\\ 1\">\n <title>\n Title 1\n <paragraph>\n Paragraph 1.\n <section ids=\"title-2\" names=\"title\\ 2\">\n <title>\n Title 2\n <paragraph>\n Paragraph 2.\n <section ids=\"title-3\" names=\"title\\ 3\">\n <title>\n Title 3\n <paragraph>\n Paragraph 3.\n <section ids=\"title-4\" names=\"title\\ 4\">\n <title>\n Title 4\n <paragraph>\n Paragraph 4.\n",
"asserts_error": false
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 18,
"line": 457,
"rst": "Test bad subsection order (Title 4).\n\nTitle 1\n=======\nParagraph 1.\n\nTitle 2\n-------\nParagraph 2.\n\nTitle 3\n=======\nParagraph 3.\n\nTitle 4\n```````\nParagraph 4.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Test bad subsection order (Title 4).\n <section ids=\"title-1\" names=\"title\\ 1\">\n <title>\n Title 1\n <paragraph>\n Paragraph 1.\n <section ids=\"title-2\" names=\"title\\ 2\">\n <title>\n Title 2\n <paragraph>\n Paragraph 2.\n <section ids=\"title-3\" names=\"title\\ 3\">\n <title>\n Title 3\n <paragraph>\n Paragraph 3.\n <system_message level=\"4\" line=\"15\" source=\"test data\" type=\"SEVERE\">\n <paragraph>\n Title level inconsistent:\n <literal_block xml:space=\"preserve\">\n Title 4\n ```````\n <paragraph>\n Paragraph 4.\n",
"asserts_error": true
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 19,
"line": 504,
"rst": "Test bad subsection order (Title 4, with overlines).\n\n=======\nTitle 1\n=======\nParagraph 1.\n\n-------\nTitle 2\n-------\nParagraph 2.\n\n=======\nTitle 3\n=======\nParagraph 3.\n\n```````\nTitle 4\n```````\nParagraph 4.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Test bad subsection order (Title 4, with overlines).\n <section ids=\"title-1\" names=\"title\\ 1\">\n <title>\n Title 1\n <paragraph>\n Paragraph 1.\n <section ids=\"title-2\" names=\"title\\ 2\">\n <title>\n Title 2\n <paragraph>\n Paragraph 2.\n <section ids=\"title-3\" names=\"title\\ 3\">\n <title>\n Title 3\n <paragraph>\n Paragraph 3.\n <system_message level=\"4\" line=\"19\" source=\"test data\" type=\"SEVERE\">\n <paragraph>\n Title level inconsistent:\n <literal_block xml:space=\"preserve\">\n ```````\n Title 4\n ```````\n <paragraph>\n Paragraph 4.\n",
"asserts_error": true
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 20,
"line": 556,
"rst": "Title containing *inline* ``markup``\n====================================\n\nParagraph.\n",
"doctree": "<document source=\"test data\">\n <section ids=\"title-containing-inline-markup\" names=\"title\\ containing\\ inline\\ markup\">\n <title>\n Title containing \n <emphasis>\n inline\n \n <literal>\n markup\n <paragraph>\n Paragraph.\n",
"asserts_error": false
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 21,
"line": 575,
"rst": "1. Numbered Title\n=================\n\nParagraph.\n",
"doctree": "<document source=\"test data\">\n <section ids=\"numbered-title\" names=\"1.\\ numbered\\ title\">\n <title>\n 1. Numbered Title\n <paragraph>\n Paragraph.\n",
"asserts_error": false
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 22,
"line": 589,
"rst": "1. Item 1.\n2. Item 2.\n3. Numbered Title\n=================\n\nParagraph.\n",
"doctree": "<document source=\"test data\">\n <enumerated_list enumtype=\"arabic\" prefix=\"\" suffix=\".\">\n <list_item>\n <paragraph>\n Item 1.\n <list_item>\n <paragraph>\n Item 2.\n <system_message level=\"2\" line=\"3\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Enumerated list ends without a blank line; unexpected unindent.\n <section ids=\"numbered-title\" names=\"3.\\ numbered\\ title\">\n <title>\n 3. Numbered Title\n <paragraph>\n Paragraph.\n",
"asserts_error": true
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 23,
"line": 615,
"rst": "ABC\n===\n\nShort title.\n",
"doctree": "<document source=\"test data\">\n <section ids=\"abc\" names=\"abc\">\n <title>\n ABC\n <paragraph>\n Short title.\n",
"asserts_error": false
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 24,
"line": 629,
"rst": "ABC\n==\n\nUnderline too short.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"1\" line=\"2\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Possible title underline, too short for the title.\n Treating it as ordinary text because it's so short.\n <paragraph>\n ABC\n ==\n <paragraph>\n Underline too short.\n",
"asserts_error": true
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 25,
"line": 647,
"rst": "==\nABC\n==\n\nOver & underline too short.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Possible incomplete section title.\n Treating the overline as ordinary text because it's so short.\n <paragraph>\n ==\n ABC\n ==\n <paragraph>\n Over & underline too short.\n",
"asserts_error": true
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 26,
"line": 667,
"rst": "==\nABC\n\nOverline too short, no underline.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Possible incomplete section title.\n Treating the overline as ordinary text because it's so short.\n <paragraph>\n ==\n ABC\n <paragraph>\n Overline too short, no underline.\n",
"asserts_error": true
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 27,
"line": 685,
"rst": "==\nABC\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Possible incomplete section title.\n Treating the overline as ordinary text because it's so short.\n <paragraph>\n ==\n ABC\n",
"asserts_error": true
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 28,
"line": 699,
"rst": "==\n Not a title: a definition list item.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Possible incomplete section title.\n Treating the overline as ordinary text because it's so short.\n <definition_list>\n <definition_list_item>\n <term>\n ==\n <definition>\n <paragraph>\n Not a title: a definition list item.\n",
"asserts_error": true
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 29,
"line": 717,
"rst": "==\n Not a title: a definition list item.\n--\n Another definition list item. It's in a different list,\n but that's an acceptable limitation given that this will\n probably never happen in real life.\n\n The next line will trigger a warning:\n==\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Possible incomplete section title.\n Treating the overline as ordinary text because it's so short.\n <definition_list>\n <definition_list_item>\n <term>\n ==\n <definition>\n <paragraph>\n Not a title: a definition list item.\n <system_message level=\"2\" line=\"3\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Definition list ends without a blank line; unexpected unindent.\n <system_message level=\"1\" line=\"3\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Possible incomplete section title.\n Treating the overline as ordinary text because it's so short.\n <definition_list>\n <definition_list_item>\n <term>\n --\n <definition>\n <paragraph>\n Another definition list item. It's in a different list,\n but that's an acceptable limitation given that this will\n probably never happen in real life.\n <paragraph>\n The next line will trigger a warning:\n <system_message level=\"2\" line=\"9\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Definition list ends without a blank line; unexpected unindent.\n <paragraph>\n ==\n",
"asserts_error": true
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 30,
"line": 765,
"rst": "Paragraph\n\n ==\n ABC\n ==\n\n Over & underline too short.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Paragraph\n <block_quote>\n <system_message level=\"1\" line=\"3\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Unexpected possible title overline or transition.\n Treating it as ordinary text because it's so short.\n <paragraph>\n ==\n ABC\n ==\n <paragraph>\n Over & underline too short.\n",
"asserts_error": true
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 31,
"line": 790,
"rst": "Paragraph\n\n ABC\n ==\n\n Underline too short.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Paragraph\n <block_quote>\n <paragraph>\n ABC\n ==\n <paragraph>\n Underline too short.\n",
"asserts_error": false
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 32,
"line": 809,
"rst": "...\n...\n\n...\n---\n\n...\n...\n...\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"1\" line=\"1\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Possible incomplete section title.\n Treating the overline as ordinary text because it's so short.\n <section dupnames=\"...\" ids=\"section-1\">\n <title>\n ...\n <system_message level=\"1\" line=\"4\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Possible incomplete section title.\n Treating the overline as ordinary text because it's so short.\n <section dupnames=\"...\" ids=\"section-2\">\n <title>\n ...\n <system_message backrefs=\"section-2\" level=\"1\" line=\"5\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Duplicate implicit target name: \"...\".\n <system_message level=\"1\" line=\"7\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Possible incomplete section title.\n Treating the overline as ordinary text because it's so short.\n <system_message level=\"1\" line=\"7\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Possible incomplete section title.\n Treating the overline as ordinary text because it's so short.\n <section dupnames=\"...\" ids=\"section-3\">\n <title>\n ...\n <system_message backrefs=\"section-3\" level=\"1\" line=\"8\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Duplicate implicit target name: \"...\".\n <paragraph>\n ...\n",
"asserts_error": true
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 33,
"line": 856,
"rst": "..\nHi\n..\n\n...\nYo\n...\n\nHo\n",
"doctree": "<document source=\"test data\">\n <comment xml:space=\"preserve\">\n <system_message level=\"2\" line=\"2\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Explicit markup ends without a blank line; unexpected unindent.\n <section ids=\"hi\" names=\"hi\">\n <title>\n Hi\n <section ids=\"yo\" names=\"yo\">\n <title>\n Yo\n <paragraph>\n Ho\n",
"asserts_error": true
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 34,
"line": 882,
"rst": "Empty Section\n=============\n",
"doctree": "<document source=\"test data\">\n <section ids=\"empty-section\" names=\"empty\\ section\">\n <title>\n Empty Section\n",
"asserts_error": false
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 35,
"line": 892,
"rst": "===\nOne\n===\n\nThe bubble-up parser strategy conflicts with short titles\n(<= 3 char-long over- & underlines).\n\n===\nTwo\n===\n\nThe parser currently contains a work-around kludge.\nWithout it, the parser ends up in an infinite loop.\n",
"doctree": "<document source=\"test data\">\n <section ids=\"one\" names=\"one\">\n <title>\n One\n <paragraph>\n The bubble-up parser strategy conflicts with short titles\n (<= 3 char-long over- & underlines).\n <section ids=\"two\" names=\"two\">\n <title>\n Two\n <paragraph>\n The parser currently contains a work-around kludge.\n Without it, the parser ends up in an infinite loop.\n",
"asserts_error": false
},
{
"file": "test_section_headers.py",
"group": "section_headers",
"index": 36,
"line": 922,
"rst": "",
"doctree": "<document source=\"test data\">\n",
"asserts_error": false
},
{
"file": "test_substitutions.py",
"group": "substitution_definitions",
"index": 0,
"line": 42,
"rst": "Here's an image substitution definition:\n\n.. |symbol| image:: symbol.png\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Here's an image substitution definition:\n <substitution_definition names=\"symbol\">\n <image alt=\"symbol\" uri=\"symbol.png\">\n",
"asserts_error": false
},
{
"file": "test_substitutions.py",
"group": "substitution_definitions",
"index": 1,
"line": 54,
"rst": "Embedded directive starts on the next line:\n\n.. |symbol|\n image:: symbol.png\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Embedded directive starts on the next line:\n <substitution_definition names=\"symbol\">\n <image alt=\"symbol\" uri=\"symbol.png\">\n",
"asserts_error": false
},
{
"file": "test_substitutions.py",
"group": "substitution_definitions",
"index": 2,
"line": 67,
"rst": "Trailing spaces should not be significant:\n\n.. |symbol| image:: \n symbol.png\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Trailing spaces should not be significant:\n <substitution_definition names=\"symbol\">\n <image alt=\"symbol\" uri=\"symbol.png\">\n",
"asserts_error": false
},
{
"file": "test_substitutions.py",
"group": "substitution_definitions",
"index": 3,
"line": 80,
"rst": "Here's a series of substitution definitions:\n\n.. |symbol 1| image:: symbol1.png\n.. |SYMBOL 2| image:: symbol2.png\n :height: 50\n :width: 100\n.. |symbol 3| image:: symbol3.png\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Here's a series of substitution definitions:\n <substitution_definition names=\"symbol\\ 1\">\n <image alt=\"symbol 1\" uri=\"symbol1.png\">\n <substitution_definition names=\"SYMBOL\\ 2\">\n <image alt=\"SYMBOL 2\" height=\"50\" uri=\"symbol2.png\" width=\"100\">\n <substitution_definition names=\"symbol\\ 3\">\n <image alt=\"symbol 3\" uri=\"symbol3.png\">\n",
"asserts_error": false
},
{
"file": "test_substitutions.py",
"group": "substitution_definitions",
"index": 4,
"line": 100,
"rst": ".. |very long substitution text,\n split across lines| image:: symbol.png\n",
"doctree": "<document source=\"test data\">\n <substitution_definition names=\"very\\ long\\ substitution\\ text,\\ split\\ across\\ lines\">\n <image alt=\"very long substitution text, split across lines\" uri=\"symbol.png\">\n",
"asserts_error": false
},
{
"file": "test_substitutions.py",
"group": "substitution_definitions",
"index": 5,
"line": 109,
"rst": ".. |symbol 1| image:: symbol.png\n\n Followed by a block quote.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Error in \"image\" directive:\n no content permitted.\n <literal_block xml:space=\"preserve\">\n image:: symbol.png\n \n Followed by a block quote.\n <system_message level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Substitution definition \"symbol 1\" empty or invalid.\n <literal_block xml:space=\"preserve\">\n .. |symbol 1| image:: symbol.png\n \n Followed by a block quote.\n",
"asserts_error": true
},
{
"file": "test_substitutions.py",
"group": "substitution_definitions",
"index": 6,
"line": 132,
"rst": ".. |symbol 1| image:: symbol.png\n\nFollowed by a paragraph.\n\n.. |symbol 2| image:: symbol.png\n\n..\n\n Followed by a block quote.\n",
"doctree": "<document source=\"test data\">\n <substitution_definition names=\"symbol\\ 1\">\n <image alt=\"symbol 1\" uri=\"symbol.png\">\n <paragraph>\n Followed by a paragraph.\n <substitution_definition names=\"symbol\\ 2\">\n <image alt=\"symbol 2\" uri=\"symbol.png\">\n <comment xml:space=\"preserve\">\n <block_quote>\n <paragraph>\n Followed by a block quote.\n",
"asserts_error": false
},
{
"file": "test_substitutions.py",
"group": "substitution_definitions",
"index": 7,
"line": 156,
"rst": "Substitutions support case differences:\n\n.. |eacute| replace:: é\n.. |Eacute| replace:: É\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Substitutions support case differences:\n <substitution_definition names=\"eacute\">\n é\n <substitution_definition names=\"Eacute\">\n É\n",
"asserts_error": false
},
{
"file": "test_substitutions.py",
"group": "substitution_definitions",
"index": 8,
"line": 171,
"rst": "Raw substitution, backslashes should be preserved:\n\n.. |alpha| raw:: latex\n\n $\\\\alpha$\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Raw substitution, backslashes should be preserved:\n <substitution_definition names=\"alpha\">\n <raw format=\"latex\" xml:space=\"preserve\">\n $\\\\alpha$\n",
"asserts_error": false
},
{
"file": "test_substitutions.py",
"group": "substitution_definitions",
"index": 9,
"line": 186,
"rst": "Here are some duplicate substitution definitions:\n\n.. |symbol| image:: symbol.png\n.. |symbol| image:: symbol.png\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Here are some duplicate substitution definitions:\n <substitution_definition dupnames=\"symbol\">\n <image alt=\"symbol\" uri=\"symbol.png\">\n <system_message level=\"3\" line=\"4\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Duplicate substitution definition name: \"symbol\".\n <substitution_definition names=\"symbol\">\n <image alt=\"symbol\" uri=\"symbol.png\">\n",
"asserts_error": true
},
{
"file": "test_substitutions.py",
"group": "substitution_definitions",
"index": 10,
"line": 204,
"rst": "Here are some bad cases:\n\n.. |symbol| image:: symbol.png\nNo blank line after.\n\n.. |empty|\n\n.. |unknown| directive:: symbol.png\n\n.. |invalid 1| there's no directive here\n.. |invalid 2| there's no directive here\n With some block quote text, line 1.\n And some more, line 2.\n\n.. |invalid 3| there's no directive here\n\n.. | bad name | bad data\n\n.. |\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Here are some bad cases:\n <substitution_definition names=\"symbol\">\n <image alt=\"symbol\" uri=\"symbol.png\">\n <system_message level=\"2\" line=\"4\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Explicit markup ends without a blank line; unexpected unindent.\n <paragraph>\n No blank line after.\n <system_message level=\"2\" line=\"6\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Substitution definition \"empty\" missing contents.\n <literal_block xml:space=\"preserve\">\n .. |empty|\n <system_message level=\"1\" line=\"8\" source=\"test data\" type=\"INFO\">\n <paragraph>\n No directive entry for \"directive\" in module \"docutils.parsers.rst.languages.en\".\n Trying \"directive\" as canonical directive name.\n <system_message level=\"3\" line=\"8\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Unknown directive type \"directive\".\n <literal_block xml:space=\"preserve\">\n directive:: symbol.png\n <system_message level=\"2\" line=\"8\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Substitution definition \"unknown\" empty or invalid.\n <literal_block xml:space=\"preserve\">\n .. |unknown| directive:: symbol.png\n <system_message level=\"2\" line=\"10\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Substitution definition \"invalid 1\" empty or invalid.\n <literal_block xml:space=\"preserve\">\n .. |invalid 1| there's no directive here\n <system_message level=\"2\" line=\"11\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Substitution definition \"invalid 2\" empty or invalid.\n <literal_block xml:space=\"preserve\">\n .. |invalid 2| there's no directive here\n With some block quote text, line 1.\n And some more, line 2.\n <system_message level=\"2\" line=\"15\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Substitution definition \"invalid 3\" empty or invalid.\n <literal_block xml:space=\"preserve\">\n .. |invalid 3| there's no directive here\n <comment xml:space=\"preserve\">\n | bad name | bad data\n <comment xml:space=\"preserve\">\n |\n",
"asserts_error": true
},
{
"file": "test_substitutions.py",
"group": "substitution_definitions",
"index": 11,
"line": 277,
"rst": "Elements that are prohibited inside of substitution definitions:\n\n.. |target| replace:: _`target`\n.. |reference| replace:: anonymous__\n.. |auto-numbered footnote| replace:: [#]_\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Elements that are prohibited inside of substitution definitions:\n <system_message level=\"3\" line=\"3\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Substitution definition contains illegal element <target>:\n <literal_block xml:space=\"preserve\">\n <target ids=\"target\" names=\"target\">\n target\n <literal_block xml:space=\"preserve\">\n .. |target| replace:: _`target`\n <system_message level=\"3\" line=\"4\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Substitution definition contains illegal element <reference>:\n <literal_block xml:space=\"preserve\">\n <reference anonymous=\"1\" name=\"anonymous\">\n anonymous\n <literal_block xml:space=\"preserve\">\n .. |reference| replace:: anonymous__\n <system_message level=\"3\" line=\"5\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Substitution definition contains illegal element <footnote_reference>:\n <literal_block xml:space=\"preserve\">\n <footnote_reference auto=\"1\" ids=\"footnote-reference-1\">\n <literal_block xml:space=\"preserve\">\n .. |auto-numbered footnote| replace:: [#]_\n",
"asserts_error": true
},
{
"file": "test_tables.py",
"group": "grid_tables",
"index": 0,
"line": 51,
"rst": "+-------------------------------------+\n| A table with one cell and one line. |\n+-------------------------------------+\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"1\">\n <colspec colwidth=\"37\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n A table with one cell and one line.\n",
"asserts_error": false
},
{
"file": "test_tables.py",
"group": "grid_tables",
"index": 1,
"line": 67,
"rst": "+-----------------------+\n| A table with one cell |\n| and two lines. |\n+-----------------------+\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"1\">\n <colspec colwidth=\"23\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n A table with one cell\n and two lines.\n",
"asserts_error": false
},
{
"file": "test_tables.py",
"group": "grid_tables",
"index": 2,
"line": 85,
"rst": "+-----------------------+\n| A malformed table. |\n+-----------------------+\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Malformed table.\n <literal_block xml:space=\"preserve\">\n +-----------------------+\n | A malformed table. |\n +-----------------------+\n",
"asserts_error": true
},
{
"file": "test_tables.py",
"group": "grid_tables",
"index": 3,
"line": 100,
"rst": "+------------------------+\n| A well-formed | table. |\n+------------------------+\n\n+------------------------+\n| This +----------+ too! |\n+------------------------+\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"1\">\n <colspec colwidth=\"24\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n A well-formed | table.\n <table>\n <tgroup cols=\"1\">\n <colspec colwidth=\"24\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n This +----------+ too!\n",
"asserts_error": false
},
{
"file": "test_tables.py",
"group": "grid_tables",
"index": 4,
"line": 128,
"rst": "+--------------+--------------+\n| A table with | two columns. |\n+--------------+--------------+\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"2\">\n <colspec colwidth=\"14\">\n <colspec colwidth=\"14\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n A table with\n <entry>\n <paragraph>\n two columns.\n",
"asserts_error": false
},
{
"file": "test_tables.py",
"group": "grid_tables",
"index": 5,
"line": 148,
"rst": "+--------------+\n| A table with |\n+--------------+\n| two rows. |\n+--------------+\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"1\">\n <colspec colwidth=\"14\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n A table with\n <row>\n <entry>\n <paragraph>\n two rows.\n",
"asserts_error": false
},
{
"file": "test_tables.py",
"group": "grid_tables",
"index": 6,
"line": 170,
"rst": "+--------------+-------------+\n| A table with | two columns |\n+--------------+-------------+\n| and | two rows. |\n+--------------+-------------+\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"2\">\n <colspec colwidth=\"14\">\n <colspec colwidth=\"13\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n A table with\n <entry>\n <paragraph>\n two columns\n <row>\n <entry>\n <paragraph>\n and\n <entry>\n <paragraph>\n two rows.\n",
"asserts_error": false
},
{
"file": "test_tables.py",
"group": "grid_tables",
"index": 7,
"line": 199,
"rst": "+--------------+---------------+\n| A table with | two columns, |\n+--------------+---------------+\n| two rows, and a column span. |\n+------------------------------+\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"2\">\n <colspec colwidth=\"14\">\n <colspec colwidth=\"15\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n A table with\n <entry>\n <paragraph>\n two columns,\n <row>\n <entry morecols=\"1\">\n <paragraph>\n two rows, and a column span.\n",
"asserts_error": false
},
{
"file": "test_tables.py",
"group": "grid_tables",
"index": 8,
"line": 225,
"rst": "+--------------------------+\n| A table with three rows, |\n+------------+-------------+\n| and two | columns. |\n+------------+-------------+\n| First and last rows |\n| contains column spans. |\n+--------------------------+\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"2\">\n <colspec colwidth=\"12\">\n <colspec colwidth=\"13\">\n <tbody>\n <row>\n <entry morecols=\"1\">\n <paragraph>\n A table with three rows,\n <row>\n <entry>\n <paragraph>\n and two\n <entry>\n <paragraph>\n columns.\n <row>\n <entry morecols=\"1\">\n <paragraph>\n First and last rows\n contains column spans.\n",
"asserts_error": false
},
{
"file": "test_tables.py",
"group": "grid_tables",
"index": 9,
"line": 259,
"rst": "+--------------+--------------+\n| A table with | two columns, |\n+--------------+ and a row |\n| two rows, | span. |\n+--------------+--------------+\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"2\">\n <colspec colwidth=\"14\">\n <colspec colwidth=\"14\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n A table with\n <entry morerows=\"1\">\n <paragraph>\n two columns,\n and a row\n span.\n <row>\n <entry>\n <paragraph>\n two rows,\n",
"asserts_error": false
},
{
"file": "test_tables.py",
"group": "grid_tables",
"index": 10,
"line": 287,
"rst": "+------------+-------------+---------------+\n| A table | two rows in | and row spans |\n| with three +-------------+ to left and |\n| columns, | the middle, | right. |\n+------------+-------------+---------------+\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"3\">\n <colspec colwidth=\"12\">\n <colspec colwidth=\"13\">\n <colspec colwidth=\"15\">\n <tbody>\n <row>\n <entry morerows=\"1\">\n <paragraph>\n A table\n with three\n columns,\n <entry>\n <paragraph>\n two rows in\n <entry morerows=\"1\">\n <paragraph>\n and row spans\n to left and\n right.\n <row>\n <entry>\n <paragraph>\n the middle,\n",
"asserts_error": false
},
{
"file": "test_tables.py",
"group": "grid_tables",
"index": 11,
"line": 321,
"rst": "Complex spanning pattern (no edge knows all rows/cols):\n\n+-----------+-------------------------+\n| W/NW cell | N/NE cell |\n| +-------------+-----------+\n| | Middle cell | E/SE cell |\n+-----------+-------------+ |\n| S/SE cell | |\n+-------------------------+-----------+\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Complex spanning pattern (no edge knows all rows/cols):\n <table>\n <tgroup cols=\"3\">\n <colspec colwidth=\"11\">\n <colspec colwidth=\"13\">\n <colspec colwidth=\"11\">\n <tbody>\n <row>\n <entry morerows=\"1\">\n <paragraph>\n W/NW cell\n <entry morecols=\"1\">\n <paragraph>\n N/NE cell\n <row>\n <entry>\n <paragraph>\n Middle cell\n <entry morerows=\"1\">\n <paragraph>\n E/SE cell\n <row>\n <entry morecols=\"1\">\n <paragraph>\n S/SE cell\n",
"asserts_error": false
},
{
"file": "test_tables.py",
"group": "grid_tables",
"index": 12,
"line": 361,
"rst": "+------------------------+------------+----------+----------+\n| Header row, column 1 | Header 2 | Header 3 | Header 4 |\n+========================+============+==========+==========+\n| body row 1, column 1 | column 2 | column 3 | column 4 |\n+------------------------+------------+----------+----------+\n| body row 2 | Cells may span columns. |\n+------------------------+------------+---------------------+\n| body row 3 | Cells may | - Table cells |\n+------------------------+ span rows. | - contain |\n| body row 4 | | - body elements. |\n+------------------------+------------+---------------------+\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"4\">\n <colspec colwidth=\"24\">\n <colspec colwidth=\"12\">\n <colspec colwidth=\"10\">\n <colspec colwidth=\"10\">\n <thead>\n <row>\n <entry>\n <paragraph>\n Header row, column 1\n <entry>\n <paragraph>\n Header 2\n <entry>\n <paragraph>\n Header 3\n <entry>\n <paragraph>\n Header 4\n <tbody>\n <row>\n <entry>\n <paragraph>\n body row 1, column 1\n <entry>\n <paragraph>\n column 2\n <entry>\n <paragraph>\n column 3\n <entry>\n <paragraph>\n column 4\n <row>\n <entry>\n <paragraph>\n body row 2\n <entry morecols=\"2\">\n <paragraph>\n Cells may span columns.\n <row>\n <entry>\n <paragraph>\n body row 3\n <entry morerows=\"1\">\n <paragraph>\n Cells may\n span rows.\n <entry morecols=\"1\" morerows=\"1\">\n <bullet_list bullet=\"-\">\n <list_item>\n <paragraph>\n Table cells\n <list_item>\n <paragraph>\n contain\n <list_item>\n <paragraph>\n body elements.\n <row>\n <entry>\n <paragraph>\n body row 4\n",
"asserts_error": false
},
{
"file": "test_tables.py",
"group": "grid_tables",
"index": 13,
"line": 441,
"rst": "+-----------------+--------+\n| A simple table | cell 2 |\n+-----------------+--------+\n| cell 3 | cell 4 |\n+-----------------+--------+\nNo blank line after table.\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"2\">\n <colspec colwidth=\"17\">\n <colspec colwidth=\"8\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n A simple table\n <entry>\n <paragraph>\n cell 2\n <row>\n <entry>\n <paragraph>\n cell 3\n <entry>\n <paragraph>\n cell 4\n <system_message level=\"2\" line=\"6\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Blank line required after table.\n <paragraph>\n No blank line after table.\n",
"asserts_error": true
},
{
"file": "test_tables.py",
"group": "grid_tables",
"index": 14,
"line": 476,
"rst": "+-----------------+--------+\n| A simple table | cell 2 |\n+-----------------+--------+\n| cell 3 | cell 4 |\n+-----------------+--------+\n Unexpected indent and no blank line after table.\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"2\">\n <colspec colwidth=\"17\">\n <colspec colwidth=\"8\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n A simple table\n <entry>\n <paragraph>\n cell 2\n <row>\n <entry>\n <paragraph>\n cell 3\n <entry>\n <paragraph>\n cell 4\n <system_message level=\"3\" line=\"6\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Unexpected indentation.\n <system_message level=\"2\" line=\"6\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Blank line required after table.\n <block_quote>\n <paragraph>\n Unexpected indent and no blank line after table.\n",
"asserts_error": true
},
{
"file": "test_tables.py",
"group": "grid_tables",
"index": 15,
"line": 515,
"rst": "+--------------+-------------+\n| A bad table. | |\n+--------------+ |\n| Cells must be rectangles. |\n+----------------------------+\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Malformed table.\n Malformed table; parse incomplete.\n <literal_block xml:space=\"preserve\">\n +--------------+-------------+\n | A bad table. | |\n +--------------+ |\n | Cells must be rectangles. |\n +----------------------------+\n",
"asserts_error": true
},
{
"file": "test_tables.py",
"group": "grid_tables",
"index": 16,
"line": 535,
"rst": "+------------------------------+\n| This table contains another. |\n| |\n| +-------------------------+ |\n| | A table within a table. | |\n| +-------------------------+ |\n+------------------------------+\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"1\">\n <colspec colwidth=\"30\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n This table contains another.\n <table>\n <tgroup cols=\"1\">\n <colspec colwidth=\"25\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n A table within a table.\n",
"asserts_error": false
},
{
"file": "test_tables.py",
"group": "grid_tables",
"index": 17,
"line": 563,
"rst": "+------------------+--------+\n| A simple table | |\n+------------------+--------+\n| with empty cells | |\n+------------------+--------+\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"2\">\n <colspec colwidth=\"18\">\n <colspec colwidth=\"8\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n A simple table\n <entry>\n <row>\n <entry>\n <paragraph>\n with empty cells\n <entry>\n",
"asserts_error": false
},
{
"file": "test_tables.py",
"group": "simple_tables",
"index": 0,
"line": 659,
"rst": "============ ============\nA table with two columns.\n============ ============\n\nParagraph.\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"2\">\n <colspec colwidth=\"12\">\n <colspec colwidth=\"12\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n A table with\n <entry>\n <paragraph>\n two columns.\n <paragraph>\n Paragraph.\n",
"asserts_error": false
},
{
"file": "test_tables.py",
"group": "simple_tables",
"index": 1,
"line": 683,
"rst": "============ ============\nA table with two columns\nand two rows.\n============ ============\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"2\">\n <colspec colwidth=\"12\">\n <colspec colwidth=\"12\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n A table with\n <entry>\n <paragraph>\n two columns\n <row>\n <entry>\n <paragraph>\n and\n <entry>\n <paragraph>\n two rows.\n",
"asserts_error": false
},
{
"file": "test_tables.py",
"group": "simple_tables",
"index": 2,
"line": 711,
"rst": "============ ==============\nA table with two columns,\ntwo rows, and a column span.\n============================\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"2\">\n <colspec colwidth=\"12\">\n <colspec colwidth=\"14\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n A table with\n <entry>\n <paragraph>\n two columns,\n <row>\n <entry morecols=\"1\">\n <paragraph>\n two rows, and a column span.\n",
"asserts_error": false
},
{
"file": "test_tables.py",
"group": "simple_tables",
"index": 3,
"line": 736,
"rst": "== =========== ===========\n1 A table with three rows,\n-- ------------------------\n2 and three columns.\n3 First and third rows\n contain column spans.\n\n This row is a multi-line row, and overflows to the right.\n-- ------------------------\n4 One last row.\n== =========== ===========\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"3\">\n <colspec colwidth=\"2\">\n <colspec colwidth=\"11\">\n <colspec colwidth=\"44\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n 1\n <entry morecols=\"1\">\n <paragraph>\n A table with three rows,\n <row>\n <entry>\n <paragraph>\n 2\n <entry>\n <paragraph>\n and three\n <entry>\n <paragraph>\n columns.\n <row>\n <entry>\n <paragraph>\n 3\n <entry morecols=\"1\">\n <paragraph>\n First and third rows\n contain column spans.\n <paragraph>\n This row is a multi-line row, and overflows to the right.\n <row>\n <entry>\n <paragraph>\n 4\n <entry>\n <paragraph>\n One last\n <entry>\n <paragraph>\n row.\n",
"asserts_error": false
},
{
"file": "test_tables.py",
"group": "simple_tables",
"index": 4,
"line": 795,
"rst": "======= ========= ========\nA table with three columns.\n================== ========\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"3\">\n <colspec colwidth=\"7\">\n <colspec colwidth=\"9\">\n <colspec colwidth=\"8\">\n <tbody>\n <row>\n <entry morecols=\"1\">\n <paragraph>\n A table with three\n <entry>\n <paragraph>\n columns.\n",
"asserts_error": false
},
{
"file": "test_tables.py",
"group": "simple_tables",
"index": 5,
"line": 816,
"rst": "============== ======\nA simple table this text extends to the right\ncell 3 as does this text\n============== ======\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"2\">\n <colspec colwidth=\"14\">\n <colspec colwidth=\"30\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n A simple table\n <entry>\n <paragraph>\n this text extends to the right\n <row>\n <entry>\n <paragraph>\n cell 3\n <entry>\n <paragraph>\n as does this text\n",
"asserts_error": false
},
{
"file": "test_tables.py",
"group": "simple_tables",
"index": 6,
"line": 844,
"rst": "============== ======\nA simple table this text extends to the right\n continuation of cell 2\n============== ======\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"2\">\n <colspec colwidth=\"14\">\n <colspec colwidth=\"30\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n A simple table\n <entry>\n <paragraph>\n this text extends to the right\n continuation of cell 2\n",
"asserts_error": false
},
{
"file": "test_tables.py",
"group": "simple_tables",
"index": 7,
"line": 866,
"rst": "============== ======\nA simple table with\nno bottom border\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Malformed table.\n No bottom table border found.\n <literal_block xml:space=\"preserve\">\n ============== ======\n A simple table with\n no bottom border\n",
"asserts_error": true
},
{
"file": "test_tables.py",
"group": "simple_tables",
"index": 8,
"line": 882,
"rst": "============== ======\nA simple table cell 2\ncell 3 cell 4\n============== ======\nNo blank line after table.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Malformed table.\n No bottom table border found or no blank line after table bottom.\n <literal_block xml:space=\"preserve\">\n ============== ======\n A simple table cell 2\n cell 3 cell 4\n ============== ======\n <system_message level=\"2\" line=\"5\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Blank line required after table.\n <paragraph>\n No blank line after table.\n",
"asserts_error": true
},
{
"file": "test_tables.py",
"group": "simple_tables",
"index": 9,
"line": 906,
"rst": "============== ======\nA simple table cell 2\n============== ======\ncell 3 cell 4\n============== ======\nNo blank line after table.\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"2\">\n <colspec colwidth=\"14\">\n <colspec colwidth=\"6\">\n <thead>\n <row>\n <entry>\n <paragraph>\n A simple table\n <entry>\n <paragraph>\n cell 2\n <tbody>\n <row>\n <entry>\n <paragraph>\n cell 3\n <entry>\n <paragraph>\n cell 4\n <system_message level=\"2\" line=\"6\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Blank line required after table.\n <paragraph>\n No blank line after table.\n",
"asserts_error": true
},
{
"file": "test_tables.py",
"group": "simple_tables",
"index": 10,
"line": 942,
"rst": "============== ======\nA simple table cell 2\ncell 3 cell 4\n============== ======\n Unexpected indent and no blank line after table.\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Malformed table.\n No bottom table border found or no blank line after table bottom.\n <literal_block xml:space=\"preserve\">\n ============== ======\n A simple table cell 2\n cell 3 cell 4\n ============== ======\n <system_message level=\"2\" line=\"5\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Blank line required after table.\n <block_quote>\n <paragraph>\n Unexpected indent and no blank line after table.\n",
"asserts_error": true
},
{
"file": "test_tables.py",
"group": "simple_tables",
"index": 11,
"line": 967,
"rst": "============== ======\nA bad table cell 2\ncell 3 cell 4\n============ ========\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"4\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Malformed table.\n Column span alignment problem in table line 4.\n <literal_block xml:space=\"preserve\">\n ============== ======\n A bad table cell 2\n cell 3 cell 4\n ============ ========\n",
"asserts_error": true
},
{
"file": "test_tables.py",
"group": "simple_tables",
"index": 12,
"line": 985,
"rst": "======== =========\nA bad table cell 2\ncell 3 cell 4\n======== =========\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"2\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Malformed table.\n Text in column margin in table line 2.\n <literal_block xml:space=\"preserve\">\n ======== =========\n A bad table cell 2\n cell 3 cell 4\n ======== =========\n",
"asserts_error": true
},
{
"file": "test_tables.py",
"group": "simple_tables",
"index": 13,
"line": 1003,
"rst": "== ============================\n1 This table contains another.\n2 ======= ====== ========\n A table within a table.\n ======= ====== ========\n\n The outer table does have to\n have at least two columns\n though.\n== ============================\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"2\">\n <colspec colwidth=\"2\">\n <colspec colwidth=\"28\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n 1\n <entry>\n <paragraph>\n This table contains another.\n <row>\n <entry>\n <paragraph>\n 2\n <entry>\n <table>\n <tgroup cols=\"3\">\n <colspec colwidth=\"7\">\n <colspec colwidth=\"6\">\n <colspec colwidth=\"8\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n A table\n <entry>\n <paragraph>\n within\n <entry>\n <paragraph>\n a table.\n <paragraph>\n The outer table does have to\n have at least two columns\n though.\n",
"asserts_error": false
},
{
"file": "test_tables.py",
"group": "simple_tables",
"index": 14,
"line": 1055,
"rst": "================ ======\nA simple table\nwith empty cells\n================ ======\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"2\">\n <colspec colwidth=\"16\">\n <colspec colwidth=\"6\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n A simple table\n <entry>\n <row>\n <entry>\n <paragraph>\n with empty cells\n <entry>\n",
"asserts_error": false
},
{
"file": "test_tables.py",
"group": "simple_tables",
"index": 15,
"line": 1079,
"rst": "============== ========\n A table with\n============== ========\n centered cells.\n\n============== ========\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"2\">\n <colspec colwidth=\"14\">\n <colspec colwidth=\"8\">\n <thead>\n <row>\n <entry>\n <paragraph>\n A table\n <entry>\n <paragraph>\n with\n <tbody>\n <row>\n <entry>\n <paragraph>\n centered\n <entry>\n <paragraph>\n cells.\n",
"asserts_error": false
},
{
"file": "test_tables.py",
"group": "simple_tables",
"index": 16,
"line": 1110,
"rst": "============== ======\nA simple table this text extends to the right\ncell 3 the bottom border below is too long\n============== ========\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"1\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Malformed table.\n Bottom/header table border does not match top border.\n <literal_block xml:space=\"preserve\">\n ============== ======\n A simple table this text extends to the right\n cell 3 the bottom border below is too long\n ============== ========\n",
"asserts_error": true
},
{
"file": "test_tables.py",
"group": "simple_tables",
"index": 17,
"line": 1128,
"rst": "============ =================\nA table with row separators.\n------------ -----------------\n\nBlank line before.\n------------ -----------------\n\nBlank lines before and after.\n\n------------ -----------------\nBlank line after.\n\n============ =================\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"2\">\n <colspec colwidth=\"12\">\n <colspec colwidth=\"17\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n A table with\n <entry>\n <paragraph>\n row separators.\n <row>\n <entry>\n <paragraph>\n Blank line\n <entry>\n <paragraph>\n before.\n <row>\n <entry>\n <paragraph>\n Blank lines\n <entry>\n <paragraph>\n before and after.\n <row>\n <entry>\n <paragraph>\n Blank line\n <entry>\n <paragraph>\n after.\n",
"asserts_error": false
},
{
"file": "test_tables.py",
"group": "simple_tables",
"index": 18,
"line": 1179,
"rst": "============ ====================\nA table with many row separators.\n------------ --------------------\n------------ --------------------\n\n------------ --------------------\n============ ====================\n",
"doctree": "<document source=\"test data\">\n <table>\n <tgroup cols=\"2\">\n <colspec colwidth=\"12\">\n <colspec colwidth=\"20\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n A table with\n <entry>\n <paragraph>\n many row separators.\n <row>\n <entry>\n <entry>\n <row>\n <entry>\n <entry>\n <row>\n <entry>\n <entry>\n",
"asserts_error": false
},
{
"file": "test_tables.py",
"group": "simple_tables",
"index": 19,
"line": 1212,
"rst": "== =========== ===========\n1 Span columns 2 & 3\n-- ------------------------\n2 Span columns 2 & 3\n ------------------------\n3\n== =========== ===========\n\n== =========== ===========\n1 Span cols 1&2 but not 3\n--------------- -----------\n2 Span cols 1&2 but not 3\n---------------\n3 no spans here\n== =========== ===========\n\n== =========== ===========\n1 Not a span Not a span\n ----------- -----------\n2\n== =========== ===========\n",
"doctree": "<document source=\"test data\">\n <system_message level=\"3\" line=\"4\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Malformed table.\n Text in column margin in table line 4.\n <literal_block xml:space=\"preserve\">\n == =========== ===========\n 1 Span columns 2 & 3\n -- ------------------------\n 2 Span columns 2 & 3\n ------------------------\n 3\n == =========== ===========\n <system_message level=\"3\" line=\"13\" source=\"test data\" type=\"ERROR\">\n <paragraph>\n Malformed table.\n Column span incomplete in table line 5.\n <literal_block xml:space=\"preserve\">\n == =========== ===========\n 1 Span cols 1&2 but not 3\n --------------- -----------\n 2 Span cols 1&2 but not 3\n ---------------\n 3 no spans here\n == =========== ===========\n <table>\n <tgroup cols=\"3\">\n <colspec colwidth=\"2\">\n <colspec colwidth=\"11\">\n <colspec colwidth=\"11\">\n <tbody>\n <row>\n <entry>\n <paragraph>\n 1\n <entry>\n <system_message level=\"4\" line=\"19\" source=\"test data\" type=\"SEVERE\">\n <paragraph>\n Unexpected section title.\n <literal_block xml:space=\"preserve\">\n Not a span\n -----------\n <entry>\n <system_message level=\"4\" line=\"19\" source=\"test data\" type=\"SEVERE\">\n <paragraph>\n Unexpected section title.\n <literal_block xml:space=\"preserve\">\n Not a span\n -----------\n <row>\n <entry>\n <paragraph>\n 2\n <entry>\n <entry>\n",
"asserts_error": true
},
{
"file": "test_targets.py",
"group": "targets",
"index": 0,
"line": 42,
"rst": ".. _target:\n\n(Internal hyperlink target.)\n",
"doctree": "<document source=\"test data\">\n <target ids=\"target\" names=\"target\">\n <paragraph>\n (Internal hyperlink target.)\n",
"asserts_error": false
},
{
"file": "test_targets.py",
"group": "targets",
"index": 1,
"line": 53,
"rst": ".. _optional space before colon :\n",
"doctree": "<document source=\"test data\">\n <target ids=\"optional-space-before-colon\" names=\"optional\\ space\\ before\\ colon\">\n",
"asserts_error": false
},
{
"file": "test_targets.py",
"group": "targets",
"index": 2,
"line": 60,
"rst": "\nExternal hyperlink targets:\n\n.. _one-liner: http://structuredtext.sourceforge.net\n\n.. _starts-on-this-line: http://\n structuredtext.\n sourceforge.net\n\n.. _entirely-below:\n http://structuredtext.\n sourceforge.net\n\n.. _escaped-whitespace: http://example.org/a\\ path\\ with\\\n spaces.html\n\n.. _not-indirect: uri\\_\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n External hyperlink targets:\n <target ids=\"one-liner\" names=\"one-liner\" refuri=\"http://structuredtext.sourceforge.net\">\n <target ids=\"starts-on-this-line\" names=\"starts-on-this-line\" refuri=\"http://structuredtext.sourceforge.net\">\n <target ids=\"entirely-below\" names=\"entirely-below\" refuri=\"http://structuredtext.sourceforge.net\">\n <target ids=\"escaped-whitespace\" names=\"escaped-whitespace\" refuri=\"http://example.org/a path with spaces.html\">\n <target ids=\"not-indirect\" names=\"not-indirect\" refuri=\"uri_\">\n",
"asserts_error": false
},
{
"file": "test_targets.py",
"group": "targets",
"index": 3,
"line": 88,
"rst": "Indirect hyperlink targets:\n\n.. _target1: reference_\n\n.. _target2: `phrase-link reference`_\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Indirect hyperlink targets:\n <target ids=\"target1\" names=\"target1\" refname=\"reference\">\n <target ids=\"target2\" names=\"target2\" refname=\"phrase-link reference\">\n",
"asserts_error": false
},
{
"file": "test_targets.py",
"group": "targets",
"index": 4,
"line": 102,
"rst": ".. _a long target name:\n\n.. _`a target name: including a colon (quoted)`:\n\n.. _a target name\\: including a colon (escaped):\n",
"doctree": "<document source=\"test data\">\n <target ids=\"a-long-target-name\" names=\"a\\ long\\ target\\ name\">\n <target ids=\"a-target-name-including-a-colon-quoted\" names=\"a\\ target\\ name:\\ including\\ a\\ colon\\ (quoted)\">\n <target ids=\"a-target-name-including-a-colon-escaped\" names=\"a\\ target\\ name:\\ including\\ a\\ colon\\ (escaped)\">\n",
"asserts_error": false
},
{
"file": "test_targets.py",
"group": "targets",
"index": 5,
"line": 115,
"rst": ".. _`target: No matching backquote.\n.. _`: No matching backquote either.\n",
"doctree": "<document source=\"test data\">\n <comment xml:space=\"preserve\">\n _`target: No matching backquote.\n <system_message level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n malformed hyperlink target.\n <comment xml:space=\"preserve\">\n _`: No matching backquote either.\n <system_message level=\"2\" line=\"2\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n malformed hyperlink target.\n",
"asserts_error": true
},
{
"file": "test_targets.py",
"group": "targets",
"index": 6,
"line": 132,
"rst": ".. _a very long target name,\n split across lines:\n.. _`and another,\n with backquotes`:\n",
"doctree": "<document source=\"test data\">\n <target ids=\"a-very-long-target-name-split-across-lines\" names=\"a\\ very\\ long\\ target\\ name,\\ split\\ across\\ lines\">\n <target ids=\"and-another-with-backquotes\" names=\"and\\ another,\\ with\\ backquotes\">\n",
"asserts_error": false
},
{
"file": "test_targets.py",
"group": "targets",
"index": 7,
"line": 143,
"rst": "External hyperlink:\n\n.. _target: http://www.python.org/\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n External hyperlink:\n <target ids=\"target\" names=\"target\" refuri=\"http://www.python.org/\">\n",
"asserts_error": false
},
{
"file": "test_targets.py",
"group": "targets",
"index": 8,
"line": 154,
"rst": ".. _email: jdoe@example.com\n\n.. _multi-line email: jdoe\n @example.com\n",
"doctree": "<document source=\"test data\">\n <target ids=\"email\" names=\"email\" refuri=\"mailto:jdoe@example.com\">\n <target ids=\"multi-line-email\" names=\"multi-line\\ email\" refuri=\"mailto:jdoe@example.com\">\n",
"asserts_error": false
},
{
"file": "test_targets.py",
"group": "targets",
"index": 9,
"line": 165,
"rst": "Malformed target:\n\n.. __malformed: no good\n\nTarget beginning with an underscore:\n\n.. _`_target`: OK\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Malformed target:\n <comment xml:space=\"preserve\">\n __malformed: no good\n <system_message level=\"2\" line=\"3\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n malformed hyperlink target.\n <paragraph>\n Target beginning with an underscore:\n <target ids=\"target\" names=\"_target\" refuri=\"OK\">\n",
"asserts_error": true
},
{
"file": "test_targets.py",
"group": "targets",
"index": 10,
"line": 187,
"rst": "Duplicate external targets (different URIs):\n\n.. _target: first\n\n.. _target: second\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Duplicate external targets (different URIs):\n <target dupnames=\"target\" ids=\"target\" refuri=\"first\">\n <system_message backrefs=\"target-1\" level=\"2\" line=\"5\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Duplicate explicit target name: \"target\".\n <target dupnames=\"target\" ids=\"target-1\" refuri=\"second\">\n",
"asserts_error": true
},
{
"file": "test_targets.py",
"group": "targets",
"index": 11,
"line": 204,
"rst": "Duplicate external targets (same URIs):\n\n.. _target: first\n\n.. _target: first\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Duplicate external targets (same URIs):\n <target ids=\"target\" names=\"target\" refuri=\"first\">\n <system_message backrefs=\"target-1\" level=\"1\" line=\"5\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Duplicate explicit target name: \"target\".\n <target dupnames=\"target\" ids=\"target-1\" refuri=\"first\">\n",
"asserts_error": true
},
{
"file": "test_targets.py",
"group": "targets",
"index": 12,
"line": 221,
"rst": "Duplicate implicit targets.\n\nTitle\n=====\n\nParagraph.\n\nTitle\n=====\n\nParagraph.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Duplicate implicit targets.\n <section dupnames=\"title\" ids=\"title\">\n <title>\n Title\n <paragraph>\n Paragraph.\n <section dupnames=\"title\" ids=\"title-1\">\n <title>\n Title\n <system_message backrefs=\"title-1\" level=\"1\" line=\"9\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Duplicate implicit target name: \"title\".\n <paragraph>\n Paragraph.\n",
"asserts_error": true
},
{
"file": "test_targets.py",
"group": "targets",
"index": 13,
"line": 252,
"rst": "Duplicate implicit/explicit targets.\n\nTitle\n=====\n\n.. _title:\n\nParagraph.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Duplicate implicit/explicit targets.\n <section dupnames=\"title\" ids=\"title\">\n <title>\n Title\n <system_message backrefs=\"title-1\" level=\"1\" line=\"6\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Duplicate implicit target name: \"title\".\n <target ids=\"title-1\" names=\"title\">\n <paragraph>\n Paragraph.\n",
"asserts_error": true
},
{
"file": "test_targets.py",
"group": "targets",
"index": 14,
"line": 276,
"rst": "Duplicate implicit/directive targets.\n\nTitle\n=====\n\n.. target-notes::\n :name: title\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Duplicate implicit/directive targets.\n <section dupnames=\"title\" ids=\"title\">\n <title>\n Title\n <pending ids=\"title-1\" names=\"title\">\n <system_message backrefs=\"title-1\" level=\"1\" line=\"4\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Duplicate implicit target name: \"title\".\n .. internal attributes:\n .transform: docutils.transforms.references.TargetNotes\n .details:\n",
"asserts_error": true
},
{
"file": "test_targets.py",
"group": "targets",
"index": 15,
"line": 300,
"rst": "Duplicate explicit targets.\n\n.. _title:\n\nFirst.\n\n.. _title:\n\nSecond.\n\n.. _title:\n\nThird.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Duplicate explicit targets.\n <target dupnames=\"title\" ids=\"title\">\n <paragraph>\n First.\n <system_message backrefs=\"title-1\" level=\"2\" line=\"7\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Duplicate explicit target name: \"title\".\n <target dupnames=\"title\" ids=\"title-1\">\n <paragraph>\n Second.\n <system_message backrefs=\"title-2\" level=\"2\" line=\"11\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Duplicate explicit target name: \"title\".\n <target dupnames=\"title\" ids=\"title-2\">\n <paragraph>\n Third.\n",
"asserts_error": true
},
{
"file": "test_targets.py",
"group": "targets",
"index": 16,
"line": 335,
"rst": "Duplicate explicit/directive targets.\n\n.. _title:\n\nFirst.\n\n.. rubric:: this is a title too\n :name: title\n\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Duplicate explicit/directive targets.\n <target dupnames=\"title\" ids=\"title\">\n <paragraph>\n First.\n <rubric dupnames=\"title\" ids=\"title-1\">\n this is a title too\n <system_message backrefs=\"title-1\" level=\"2\" line=\"9\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Duplicate explicit target name: \"title\".\n",
"asserts_error": true
},
{
"file": "test_targets.py",
"group": "targets",
"index": 17,
"line": 359,
"rst": "Duplicate targets:\n\nTarget\n======\n\nImplicit section header target.\n\n.. [TARGET] Citation target.\n\n.. [#target] Autonumber-labeled footnote target.\n\n.. _target:\n\nExplicit internal target.\n\n.. _target: Explicit_external_target\n\n.. rubric:: directive with target\n :name: Target\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Duplicate targets:\n <section dupnames=\"target\" ids=\"target\">\n <title>\n Target\n <paragraph>\n Implicit section header target.\n <citation dupnames=\"target\" ids=\"target-1\">\n <label>\n TARGET\n <system_message backrefs=\"target-1\" level=\"1\" line=\"8\" source=\"test data\" type=\"INFO\">\n <paragraph>\n Duplicate implicit target name: \"target\".\n <paragraph>\n Citation target.\n <footnote auto=\"1\" dupnames=\"target\" ids=\"target-2\">\n <system_message backrefs=\"target-2\" level=\"2\" line=\"10\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Duplicate explicit target name: \"target\".\n <paragraph>\n Autonumber-labeled footnote target.\n <system_message backrefs=\"target-3\" level=\"2\" line=\"12\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Duplicate explicit target name: \"target\".\n <target dupnames=\"target\" ids=\"target-3\">\n <paragraph>\n Explicit internal target.\n <system_message backrefs=\"target-4\" level=\"2\" line=\"16\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Duplicate explicit target name: \"target\".\n <target dupnames=\"target\" ids=\"target-4\" refuri=\"Explicit_external_target\">\n <rubric dupnames=\"target\" ids=\"target-5\">\n directive with target\n <system_message backrefs=\"target-5\" level=\"2\" line=\"4\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Duplicate explicit target name: \"target\".\n",
"asserts_error": true
},
{
"file": "test_targets.py",
"group": "targets",
"index": 18,
"line": 419,
"rst": ".. _unescaped colon at end:: no good\n\n.. _:: no good either\n\n.. _escaped colon\\:: OK\n\n.. _`unescaped colon, quoted:`: OK\n",
"doctree": "<document source=\"test data\">\n <comment xml:space=\"preserve\">\n _unescaped colon at end:: no good\n <system_message level=\"2\" line=\"1\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n malformed hyperlink target.\n <comment xml:space=\"preserve\">\n _:: no good either\n <system_message level=\"2\" line=\"3\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n malformed hyperlink target.\n <target ids=\"escaped-colon\" names=\"escaped\\ colon:\" refuri=\"OK\">\n <target ids=\"unescaped-colon-quoted\" names=\"unescaped\\ colon,\\ quoted:\" refuri=\"OK\">\n",
"asserts_error": true
},
{
"file": "test_targets.py",
"group": "anonymous_targets",
"index": 0,
"line": 446,
"rst": "Anonymous external hyperlink target:\n\n.. __: http://w3c.org/\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Anonymous external hyperlink target:\n <target anonymous=\"1\" ids=\"target-1\" refuri=\"http://w3c.org/\">\n",
"asserts_error": false
},
{
"file": "test_targets.py",
"group": "anonymous_targets",
"index": 1,
"line": 457,
"rst": "Anonymous external hyperlink target:\n\n__ http://w3c.org/\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Anonymous external hyperlink target:\n <target anonymous=\"1\" ids=\"target-1\" refuri=\"http://w3c.org/\">\n",
"asserts_error": false
},
{
"file": "test_targets.py",
"group": "anonymous_targets",
"index": 2,
"line": 468,
"rst": "Anonymous indirect hyperlink target:\n\n.. __: reference_\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Anonymous indirect hyperlink target:\n <target anonymous=\"1\" ids=\"target-1\" refname=\"reference\">\n",
"asserts_error": false
},
{
"file": "test_targets.py",
"group": "anonymous_targets",
"index": 3,
"line": 479,
"rst": "Anonymous external hyperlink target, not indirect:\n\n__ uri\\_\n\n__ this URI ends with an underscore_\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Anonymous external hyperlink target, not indirect:\n <target anonymous=\"1\" ids=\"target-1\" refuri=\"uri_\">\n <target anonymous=\"1\" ids=\"target-2\" refuri=\"thisURIendswithanunderscore_\">\n",
"asserts_error": false
},
{
"file": "test_targets.py",
"group": "anonymous_targets",
"index": 4,
"line": 493,
"rst": "Anonymous indirect hyperlink targets:\n\n__ reference_\n__ `a very long\n reference`_\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Anonymous indirect hyperlink targets:\n <target anonymous=\"1\" ids=\"target-1\" refname=\"reference\">\n <target anonymous=\"1\" ids=\"target-2\" refname=\"a very long reference\">\n",
"asserts_error": false
},
{
"file": "test_targets.py",
"group": "anonymous_targets",
"index": 5,
"line": 507,
"rst": "Mixed anonymous & named indirect hyperlink targets:\n\n__ reference_\n.. __: reference_\n__ reference_\n.. _target1: reference_\nno blank line\n\n.. _target2: reference_\n__ reference_\n.. __: reference_\n__ reference_\nno blank line\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Mixed anonymous & named indirect hyperlink targets:\n <target anonymous=\"1\" ids=\"target-1\" refname=\"reference\">\n <target anonymous=\"1\" ids=\"target-2\" refname=\"reference\">\n <target anonymous=\"1\" ids=\"target-3\" refname=\"reference\">\n <target ids=\"target1\" names=\"target1\" refname=\"reference\">\n <system_message level=\"2\" line=\"7\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Explicit markup ends without a blank line; unexpected unindent.\n <paragraph>\n no blank line\n <target ids=\"target2\" names=\"target2\" refname=\"reference\">\n <target anonymous=\"1\" ids=\"target-4\" refname=\"reference\">\n <target anonymous=\"1\" ids=\"target-5\" refname=\"reference\">\n <target anonymous=\"1\" ids=\"target-6\" refname=\"reference\">\n <system_message level=\"2\" line=\"13\" source=\"test data\" type=\"WARNING\">\n <paragraph>\n Explicit markup ends without a blank line; unexpected unindent.\n <paragraph>\n no blank line\n",
"asserts_error": true
},
{
"file": "test_targets.py",
"group": "anonymous_targets",
"index": 6,
"line": 545,
"rst": ".. _\n",
"doctree": "<document source=\"test data\">\n <comment xml:space=\"preserve\">\n _\n",
"asserts_error": false
},
{
"file": "test_transitions.py",
"group": "transitions",
"index": 0,
"line": 45,
"rst": "Test transition markers.\n\n--------\n\nParagraph\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Test transition markers.\n <transition>\n <paragraph>\n Paragraph\n",
"asserts_error": false
},
{
"file": "test_transitions.py",
"group": "transitions",
"index": 1,
"line": 60,
"rst": "Section 1\n=========\nFirst text division of section 1.\n\n--------\n\nSecond text division of section 1.\n\nSection 2\n---------\nParagraph 2 in section 2.\n",
"doctree": "<document source=\"test data\">\n <section ids=\"section-1\" names=\"section\\ 1\">\n <title>\n Section 1\n <paragraph>\n First text division of section 1.\n <transition>\n <paragraph>\n Second text division of section 1.\n <section ids=\"section-2\" names=\"section\\ 2\">\n <title>\n Section 2\n <paragraph>\n Paragraph 2 in section 2.\n",
"asserts_error": false
},
{
"file": "test_transitions.py",
"group": "transitions",
"index": 2,
"line": 90,
"rst": "--------\n\nAccording to the DTD, a section or document may not begin with a transition.\n\nNote: There is currently no warning, but in future these\nDTD violations should be prevented or at least trigger a warning.\nAlternatively, the DTD may be relaxed to accomodate for more use cases.\n\nThe DTD specifies that two transitions may not\nbe adjacent:\n\n--------\n\n--------\n\n--------\n\nThe DTD also specifies that a section or document\nmay not end with a transition.\n\n--------\n",
"doctree": "<document source=\"test data\">\n <transition>\n <paragraph>\n According to the DTD, a section or document may not begin with a transition.\n <paragraph>\n Note: There is currently no warning, but in future these\n DTD violations should be prevented or at least trigger a warning.\n Alternatively, the DTD may be relaxed to accomodate for more use cases.\n <paragraph>\n The DTD specifies that two transitions may not\n be adjacent:\n <transition>\n <transition>\n <transition>\n <paragraph>\n The DTD also specifies that a section or document\n may not end with a transition.\n <transition>\n",
"asserts_error": false
},
{
"file": "test_transitions.py",
"group": "transitions",
"index": 3,
"line": 133,
"rst": "Test unexpected transition markers.\n\n Block quote.\n\n --------\n\n Paragraph.\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Test unexpected transition markers.\n <block_quote>\n <paragraph>\n Block quote.\n <system_message level=\"4\" line=\"5\" source=\"test data\" type=\"SEVERE\">\n <paragraph>\n Unexpected section title or transition.\n <literal_block xml:space=\"preserve\">\n --------\n <paragraph>\n Paragraph.\n",
"asserts_error": true
},
{
"file": "test_transitions.py",
"group": "transitions",
"index": 4,
"line": 157,
"rst": "Short transition marker.\n\n---\n\nParagraph\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Short transition marker.\n <paragraph>\n ---\n <paragraph>\n Paragraph\n",
"asserts_error": false
},
{
"file": "test_transitions.py",
"group": "transitions",
"index": 5,
"line": 173,
"rst": "Sections with transitions at beginning and end.\n\nSection 1\n=========\n\n----------\n\nThe next transition is legal:\n\n----------\n\nSection 2\n=========\n\n----------\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n Sections with transitions at beginning and end.\n <section ids=\"section-1\" names=\"section\\ 1\">\n <title>\n Section 1\n <transition>\n <paragraph>\n The next transition is legal:\n <transition>\n <section ids=\"section-2\" names=\"section\\ 2\">\n <title>\n Section 2\n <transition>\n",
"asserts_error": false
},
{
"file": "test_transitions.py",
"group": "transitions",
"index": 6,
"line": 206,
"rst": "A paragraph, two transitions, and a blank line.\n\n----------\n\n----------\n\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n A paragraph, two transitions, and a blank line.\n <transition>\n <transition>\n",
"asserts_error": false
},
{
"file": "test_transitions.py",
"group": "transitions",
"index": 7,
"line": 221,
"rst": "A paragraph and two transitions.\n\n----------\n\n----------\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n A paragraph and two transitions.\n <transition>\n <transition>\n",
"asserts_error": false
},
{
"file": "test_transitions.py",
"group": "transitions",
"index": 8,
"line": 235,
"rst": "----------\n\nDocument beginning with a transition.\n",
"doctree": "<document source=\"test data\">\n <transition>\n <paragraph>\n Document beginning with a transition.\n",
"asserts_error": false
},
{
"file": "test_transitions.py",
"group": "transitions",
"index": 9,
"line": 246,
"rst": "Section 1\n=========\n\nSubsection 1\n------------\n\nSome text.\n\n----------\n\nSection 2\n=========\n\nSome text.\n",
"doctree": "<document source=\"test data\">\n <section ids=\"section-1\" names=\"section\\ 1\">\n <title>\n Section 1\n <section ids=\"subsection-1\" names=\"subsection\\ 1\">\n <title>\n Subsection 1\n <paragraph>\n Some text.\n <transition>\n <section ids=\"section-2\" names=\"section\\ 2\">\n <title>\n Section 2\n <paragraph>\n Some text.\n",
"asserts_error": false
},
{
"file": "test_transitions.py",
"group": "transitions",
"index": 10,
"line": 279,
"rst": "Section 1\n=========\n\n----------\n\n----------\n\n----------\n\nSection 2\n=========\n\nSome text.\n",
"doctree": "<document source=\"test data\">\n <section ids=\"section-1\" names=\"section\\ 1\">\n <title>\n Section 1\n <transition>\n <transition>\n <transition>\n <section ids=\"section-2\" names=\"section\\ 2\">\n <title>\n Section 2\n <paragraph>\n Some text.\n",
"asserts_error": false
},
{
"file": "test_transitions.py",
"group": "transitions",
"index": 11,
"line": 308,
"rst": "----------\n\n----------\n\n----------\n",
"doctree": "<document source=\"test data\">\n <transition>\n <transition>\n <transition>\n",
"asserts_error": false
},
{
"file": "test_transitions.py",
"group": "transitions",
"index": 12,
"line": 321,
"rst": "A paragraph.\n\n----------\n\n",
"doctree": "<document source=\"test data\">\n <paragraph>\n A paragraph.\n <transition>\n",
"asserts_error": false
}
]
}