diff options
| author | grubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2008-02-15 09:10:52 +0000 |
|---|---|---|
| committer | grubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2008-02-15 09:10:52 +0000 |
| commit | 94f2abc8fc14ecf5f95031b100d653b79618c24f (patch) | |
| tree | 7c491ee05be6cd6955d552b1cabd0610af28643e /docutils | |
| parent | 362e21d6535dd51405b19e86c673edb5afbc35eb (diff) | |
| download | docutils-94f2abc8fc14ecf5f95031b100d653b79618c24f.tar.gz | |
Add test for ``.-_`` in citation labels.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5509 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils')
| -rwxr-xr-x | docutils/test/test_parsers/test_rst/test_citations.py | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/docutils/test/test_parsers/test_rst/test_citations.py b/docutils/test/test_parsers/test_rst/test_citations.py index d17fd56d3..349569ba3 100755 --- a/docutils/test/test_parsers/test_rst/test_citations.py +++ b/docutils/test/test_parsers/test_rst/test_citations.py @@ -129,6 +129,37 @@ No blank line. <comment xml:space="preserve"> [*citationlabelwithmarkup*] this isn't a citation """], +[""" +isolated internals : ``.-_``. + +.. [citation.withdot] one dot + +.. [citation-withdot] one hyphen + +.. [citation_withunderscore] one underscore +""", +"""<document source="test data"> + <paragraph> + isolated internals : \n\ + <literal> + .-_ + . + <citation ids="citation-withdot" names="citation.withdot"> + <label> + citation.withdot + <paragraph> + one dot + <citation ids="id1" names="citation-withdot"> + <label> + citation-withdot + <paragraph> + one hyphen + <citation ids="citation-withunderscore" names="citation_withunderscore"> + <label> + citation_withunderscore + <paragraph> + one underscore +"""], ] |
