Index: lib/python/StructuredText/DocumentClass.py
===================================================================
RCS file: /cvs-repository/Zope/lib/python/StructuredText/DocumentClass.py,v
retrieving revision 1.34
diff -u -r1.34 DocumentClass.py
--- lib/python/StructuredText/DocumentClass.py 9 Oct 2001 12:57:01 -0000 1.34
+++ lib/python/StructuredText/DocumentClass.py 17 Oct 2001 06:53:56 -0000
@@ -372,8 +372,8 @@
'doc_href2',
'doc_strong',
'doc_emphasize',
- 'doc_underline',
'doc_literal',
+ 'doc_underline',
'doc_sgml',
'doc_xref',
]
Index: lib/python/StructuredText/tests/testStructuredText.py
===================================================================
RCS file: /cvs-repository/Zope/lib/python/StructuredText/tests/testStructuredText.py,v
retrieving revision 1.7
diff -u -r1.7 testStructuredText.py
--- lib/python/StructuredText/tests/testStructuredText.py 16 Oct 2001 12:57:25 -0000 1.7
+++ lib/python/StructuredText/tests/testStructuredText.py 17 Oct 2001 06:53:56 -0000
@@ -224,7 +224,11 @@
self._test('index_html', \
'index_html')
-
+ def testUnderscoresInLiteral(self):
+ """ underscores in literals shouldn't do underlining """
+ self._test("this is '__a_literal__' eh",
+ "__a_literal__")
+
def test_suite():
return unittest.TestSuite( (
unittest.makeSuite(StructuredTextTests),