diff options
| author | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2005-08-15 19:45:02 +0000 |
|---|---|---|
| committer | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2005-08-15 19:45:02 +0000 |
| commit | a5b08111aa169b92d4b448812077fb63ad3e8e25 (patch) | |
| tree | 2322a46799b8b48ef5fd480fd0184643b6bb5d94 /docutils/test/test_transforms | |
| parent | 887682d7b253a3c9ca976e7ac07f3e01a4371a9b (diff) | |
| download | docutils-a5b08111aa169b92d4b448812077fb63ad3e8e25.tar.gz | |
restored a bug (removed in r3807) which lingers; added a commented-out test case for said bug; removed a bogus bug
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3809 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/test_transforms')
| -rwxr-xr-x | docutils/test/test_transforms/test_substitutions.py | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/docutils/test/test_transforms/test_substitutions.py b/docutils/test/test_transforms/test_substitutions.py index 67aa3dfed..19534a486 100755 --- a/docutils/test/test_transforms/test_substitutions.py +++ b/docutils/test/test_transforms/test_substitutions.py @@ -101,6 +101,51 @@ u"""\ <substitution_definition names="replace"> swap """], +#["""\ +#.. |l| unicode:: U+00AB .. left chevron +#.. |r| unicode:: U+00BB .. right chevron +#.. |.| replace:: |l|\ ``.``\ |r| +# +#.. Delete either of the following lines, and there is no error. +# +#Regular expression |.| will match any character +# +#.. Note:: Note that |.| matches *exactly* one character +#""", +#u"""\ +#<document source="test data"> +# <substitution_definition names="l"> +# \xab +# <substitution_definition names="r"> +# \xbb +# <substitution_definition names="."> +# <substitution_reference refname="l"> +# l +# <literal> +# . +# <substitution_reference refname="r"> +# r +# <comment xml:space="preserve"> +# Delete either of the following lines, and there is no error. +# <paragraph> +# Regular expression \n\ +# \xab +# <literal> +# . +# \xbb +# will match any character +# <note> +# <paragraph> +# Note that \n\ +# \xab +# <literal> +# . +# \xbb +# matches \n\ +# <emphasis> +# exactly +# one character +#"""], ]) totest['unicode'] = ((Substitutions,), [ |
