diff options
| author | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2004-11-02 22:14:24 +0000 |
|---|---|---|
| committer | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2004-11-02 22:14:24 +0000 |
| commit | 9e41a6191aee10eedfa1df2d0d10a4700a194e55 (patch) | |
| tree | 0d829fbf578d3ecd1813a8c2207ec7d3cd3c898e /test/test_transforms | |
| parent | b3e9a23e50a601b58933870569c83a8aff859c5e (diff) | |
| download | docutils-9e41a6191aee10eedfa1df2d0d10a4700a194e55.tar.gz | |
Added support for trimming whitespace from beside substitution references.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@2796 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'test/test_transforms')
| -rwxr-xr-x | test/test_transforms/test_substitutions.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/test_transforms/test_substitutions.py b/test/test_transforms/test_substitutions.py index 503dfba40..687a20ca5 100755 --- a/test/test_transforms/test_substitutions.py +++ b/test/test_transforms/test_substitutions.py @@ -143,6 +143,29 @@ u"""\ BogusMegaCorp \u2122 """], +["""\ +Insert an em-dash |---| automatically trimming whitespace. +Some substitutions |TM| only need trimming on one side. + +.. |---| unicode:: U+02014 + :trim: +.. |TM| unicode:: U+02122 + :ltrim: +""", +u"""\ +<document source="test data"> + <paragraph> + Insert an em-dash + \u2014 + automatically trimming whitespace. + Some substitutions + \u2122 + only need trimming on one side. + <substitution_definition ltrim="1" name="---" rtrim="1"> + \u2014 + <substitution_definition ltrim="1" name="TM"> + \u2122 +"""], ]) |
