diff options
| author | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2003-05-24 20:54:11 +0000 |
|---|---|---|
| committer | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2003-05-24 20:54:11 +0000 |
| commit | a2ec5cfc26b8cecf900605c015b443229b075178 (patch) | |
| tree | a643e8cf0ded485121c4d544af5dcb67e8eaaa01 /docutils/test/test_transforms | |
| parent | 131a3d84dfdb7271c72506d012c15ba377099382 (diff) | |
| download | docutils-a2ec5cfc26b8cecf900605c015b443229b075178.tar.gz | |
updated
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@1340 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/test_transforms')
| -rwxr-xr-x | docutils/test/test_transforms/test_substitutions.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/docutils/test/test_transforms/test_substitutions.py b/docutils/test/test_transforms/test_substitutions.py index eec8c632f..4c17bd8c8 100755 --- a/docutils/test/test_transforms/test_substitutions.py +++ b/docutils/test/test_transforms/test_substitutions.py @@ -78,6 +78,35 @@ u"""\ """], ]) +totest['unicode'] = ((Substitutions,), [ +["""\ +Insert an em-dash (|mdash|), a copyright symbol (|copy|), and a non-breaking +space (|nbsp|). + +.. |mdash| unicode:: 0x02014 +.. |copy| unicode:: \\u00A9 +.. |nbsp| unicode::   +""", +u"""\ +<document source="test data"> + <paragraph> + Insert an em-dash ( + \u2014 + ), a copyright symbol ( + \u00A9 + ), and a non-breaking + space ( + \u00A0 + ). + <substitution_definition name="mdash"> + \u2014 + <substitution_definition name="copy"> + \u00A9 + <substitution_definition name="nbsp"> + \u00A0 +"""], +]) + if __name__ == '__main__': import unittest |
