diff options
author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2013-04-28 22:26:53 +0000 |
---|---|---|
committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2013-04-28 22:26:53 +0000 |
commit | 6aca99b48533f223aa63e3a0e2e5c303452f3054 (patch) | |
tree | 48a4df52cba8bf1c79961f2f43c8f3cca59ac2af | |
parent | 27329bd9382067c1caf2b85a18d41c474049270f (diff) | |
download | docutils-6aca99b48533f223aa63e3a0e2e5c303452f3054.tar.gz |
More test for inline markup recognition (no change to the rules).
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7656 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
-rwxr-xr-x | test/test_parsers/test_rst/test_inline_markup.py | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/test/test_parsers/test_rst/test_inline_markup.py b/test/test_parsers/test_rst/test_inline_markup.py index 134fa7444..c123a1772 100755 --- a/test/test_parsers/test_rst/test_inline_markup.py +++ b/test/test_parsers/test_rst/test_inline_markup.py @@ -78,12 +78,13 @@ across lines* [r"""some punctuation is allowed around inline markup, e.g. /*emphasis*/, -*emphasis*-, and :*emphasis*: (delimiters), (*emphasis*), [*emphasis*], <*emphasis*>, {*emphasis*} (open/close pairs) +*emphasis*., *emphasis*,, *emphasis*!, and *emphasis*\ (closing delimiters), but not -)*emphasis*(, ]*emphasis*[, >*emphasis*>, }*emphasis*{ (close/open pairs) +)*emphasis*(, ]*emphasis*[, >*emphasis*>, }*emphasis*{ (close/open pairs), (*), [*], '*' or '"*"' ("quoted" start-string), x*2* or 2*x* (alphanumeric char before), -\*args or * (escaped, whitespace behind start-string) +\*args or * (escaped, whitespace behind start-string), or *the\* *stars\* *inside* (escaped, whitespace before end-string). However, '*args' will trigger a warning and may be problematic. @@ -117,12 +118,24 @@ what about *this**? <emphasis> emphasis } (open/close pairs) + <emphasis> + emphasis + ., \n\ + <emphasis> + emphasis + ,, \n\ + <emphasis> + emphasis + !, and \n\ + <emphasis> + emphasis + (closing delimiters), <paragraph> but not - )*emphasis*(, ]*emphasis*[, >*emphasis*>, }*emphasis*{ (close/open pairs) + )*emphasis*(, ]*emphasis*[, >*emphasis*>, }*emphasis*{ (close/open pairs), (*), [*], '*' or '"*"' ("quoted" start-string), x*2* or 2*x* (alphanumeric char before), - *args or * (escaped, whitespace behind start-string) + *args or * (escaped, whitespace behind start-string), or \n\ <emphasis> the* *stars* *inside @@ -132,7 +145,7 @@ what about *this**? <problematic ids="id2" refid="id1"> * args' will trigger a warning and may be problematic. - <system_message backrefs="id2" ids="id1" level="2" line="12" source="test data" type="WARNING"> + <system_message backrefs="id2" ids="id1" level="2" line="13" source="test data" type="WARNING"> <paragraph> Inline emphasis start-string without end-string. <paragraph> |