[Zope-dev] StructuredText problem w/ literals & underlining
sean.bowman@acm.org
sean.bowman@acm.org
Wed, 26 Sep 2001 12:03:28 -0500 (CDT)
hello,
I'm having a problem with StructuredText on Zope-2_4-branch under python
2.1.1. Literals with underscores in them get rendered as underlined
rather than literals; for example, '__class_init__' gets rendered as
StructuredTextParagraph(["'_", StructuredTextUnderline('class'),
"init__'"], [
])
rather than
StructuredTextParagraph(StructuredTextLiteral('__class_init__'), [
])
(which is how ClassicDocumentClass.DocumentClass renders it).
The following patch works for me, but perhaps I'm just confused about the
proper way of doing things with the StructuredTextNG package?
regards,
Sean
--- DocumentClass.py Wed Sep 26 11:49:43 2001
+++ DocumentClassNew.py Wed Sep 26 11:48:55 2001
@@ -371,8 +371,8 @@
'doc_href',
'doc_strong',
'doc_emphasize',
- 'doc_underline',
'doc_literal',
+ 'doc_underline',
'doc_sgml',
'doc_xref',
]