summaryrefslogtreecommitdiff
path: root/docutils/test
diff options
context:
space:
mode:
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2013-01-04 17:17:38 +0000
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2013-01-04 17:17:38 +0000
commiteb61ea089f3e22e8540e046a1f2c3a3000ea3dd2 (patch)
treed3976d266a38bf963b16a3dfcd728db767db3640 /docutils/test
parent0c2338b73d9e01087c8fdd96c98e2321dac66d88 (diff)
downloaddocutils-eb61ea089f3e22e8540e046a1f2c3a3000ea3dd2.tar.gz
smartquotes: Skip emtpy text tokens without updating the last character.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7585 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test')
-rw-r--r--docutils/test/test_transforms/test_smartquotes.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/docutils/test/test_transforms/test_smartquotes.py b/docutils/test/test_transforms/test_smartquotes.py
index 14332d2e1..3c059133a 100644
--- a/docutils/test/test_transforms/test_smartquotes.py
+++ b/docutils/test/test_transforms/test_smartquotes.py
@@ -95,9 +95,12 @@ u"""\
Quotes and inline-elements:
* Around "_`targets`", "*emphasized*" or "``literal``" text
- and links to "targets_".
+ and links to "targets_".
* Inside *"emphasized"* or other `inline "roles"`
+
+Do not drop characters from intra-word inline markup like
+*re*\ ``Structured``\ *Text*.
""",
u"""\
<document source="test data">
@@ -127,7 +130,16 @@ u"""\
“emphasized”
or other \n\
<title_reference>
- inline “roles”\
+ inline “roles”
+ <paragraph>
+ Do not drop characters from intra-word inline markup like
+ <emphasis>
+ re
+ <literal>
+ Structured
+ <emphasis>
+ Text
+ .\
"""],
["""\
.. class:: language-de