Commit 79c8d8ad authored by Andreas Jung's avatar Andreas Jung

added test and fix to protect __literal__ to be changed by STXNG

underline code (patch by Sean Bowman)
parent 83e4d044
......@@ -372,8 +372,8 @@ class DocumentClass:
'doc_href2',
'doc_strong',
'doc_emphasize',
'doc_underline',
'doc_literal',
'doc_underline',
'doc_sgml',
'doc_xref',
]
......
......@@ -224,6 +224,13 @@ class BasicTests(unittest.TestCase):
self._test('<a href="index_html">index_html</a>', \
'<a href="index_html">index_html</a>')
def testUnderscoresInLiteral(self):
""" underscores in literals shouldn't do unterlining """
self._test("this is '__a_literal__' eh",
"<code>__a_literal__</code>")
def test_suite():
return unittest.TestSuite( (
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment