[Zope-Checkins] CVS: Zope/lib/python/StructuredText - HTMLClass.py:1.13

Andreas Jung andreas@zope.com
Tue, 16 Oct 2001 09:15:16 -0400


Update of /cvs-repository/Zope/lib/python/StructuredText
In directory cvs.zope.org:/tmp/cvs-serv30145

Modified Files:
	HTMLClass.py 
Log Message:
leading and trailing spaces of texts inside tags are removed
(introduced with STXNG)


=== Zope/lib/python/StructuredText/HTMLClass.py 1.12 => 1.13 ===
 ##############################################################################
 
-from string import join, split, find
+from string import join, split, find, strip
 from cgi import escape
 import re, sys, ST
 
@@ -124,7 +124,7 @@
         return join(r,'')
 
     def _text(self, doc, level, output):
-        output(doc.getNodeValue())
+        output(strip(doc.getNodeValue()))
 
     def document(self, doc, level, output):
         children=doc.getChildNodes()