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',
         ]



_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to