diff options
| author | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2003-03-27 03:56:37 +0000 |
|---|---|---|
| committer | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2003-03-27 03:56:37 +0000 |
| commit | 1c87d959eb6be73667ca61bbb48d69b075a846df (patch) | |
| tree | 3b4ddf9c34bbe3f7eb5098f4b5518dc1930361bc /test/test_transforms | |
| parent | adf281a00341eae13815afb97acf04ded5fa6f2d (diff) | |
| download | docutils-1c87d959eb6be73667ca61bbb48d69b075a846df.tar.gz | |
substitutions made case-sensitive but forgiving (case-insensitive fallback)
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1236 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'test/test_transforms')
| -rwxr-xr-x | test/test_transforms/test_contents.py | 2 | ||||
| -rwxr-xr-x | test/test_transforms/test_substitutions.py | 24 |
2 files changed, 25 insertions, 1 deletions
diff --git a/test/test_transforms/test_contents.py b/test/test_transforms/test_contents.py index 024d5ee4c..5f54e7a74 100755 --- a/test/test_transforms/test_contents.py +++ b/test/test_transforms/test_contents.py @@ -163,7 +163,7 @@ Paragraph 2. <image alt="Title 2" uri="title2.png"> <paragraph> Paragraph 2. - <substitution_definition name="title 2"> + <substitution_definition name="Title 2"> <image alt="Title 2" uri="title2.png"> """], # emacs cruft: " ["""\ diff --git a/test/test_transforms/test_substitutions.py b/test/test_transforms/test_substitutions.py index ad411db43..eec8c632f 100755 --- a/test/test_transforms/test_substitutions.py +++ b/test/test_transforms/test_substitutions.py @@ -52,6 +52,30 @@ Here's an |unknown| substitution. <paragraph> Undefined substitution referenced: "unknown". """], +[u"""\ +Substitutions support case differences: + +.. |eacute| replace:: \u00E9 +.. |Eacute| replace:: \u00C9 + +|Eacute|\\t\\ |eacute|, and even |EACUTE|. +""", +u"""\ +<document source="test data"> + <paragraph> + Substitutions support case differences: + <substitution_definition name="eacute"> + \u00E9 + <substitution_definition name="Eacute"> + \u00C9 + <paragraph> + \u00C9 + t + \u00E9 + , and even \n\ + \u00C9 + . +"""], ]) |
