diff options
| author | wiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2005-10-11 20:40:41 +0000 |
|---|---|---|
| committer | wiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2005-10-11 20:40:41 +0000 |
| commit | 56809ba46e8c9b350a26e0925e263c2e1752ebec (patch) | |
| tree | fc2fb2b48511969fd944c1738185a238a19654be /docutils/test/test_transforms | |
| parent | 334e986c40120b9b90a5950178596fc6b80f5be3 (diff) | |
| download | docutils-56809ba46e8c9b350a26e0925e263c2e1752ebec.tar.gz | |
disallow anonymous hyperlink references and auto-numbered footnotes
inside of substitution definitions
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3937 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/test_transforms')
| -rwxr-xr-x | docutils/test/test_transforms/test_substitutions.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/docutils/test/test_transforms/test_substitutions.py b/docutils/test/test_transforms/test_substitutions.py index ba98e1aa1..aa3a7c6f6 100755 --- a/docutils/test/test_transforms/test_substitutions.py +++ b/docutils/test/test_transforms/test_substitutions.py @@ -235,7 +235,7 @@ u"""\ \u2122 """], ["""\ -Substitution definition with a target: +Substitution definition with an illegal element: .. |target| replace:: _`target` @@ -244,10 +244,13 @@ Make sure this substitution definition is not registered: |target| """\ <document source="test data"> <paragraph> - Substitution definition with a target: - <system_message level="2" line="3" source="test data" type="WARNING"> + Substitution definition with an illegal element: + <system_message level="3" line="3" source="test data" type="ERROR"> <paragraph> - Substitution definitions may not contain targets. + Substitution definition contains illegal element: + <literal_block xml:space="preserve"> + <target ids="target" names="target"> + target <literal_block xml:space="preserve"> .. |target| replace:: _`target` <paragraph> |
