[Zope-Checkins] CVS: Zope2 - DT_Var.py:1.42

andreas@digicool.com andreas@digicool.com
Thu, 12 Jul 2001 16:04:02 -0400 (EDT)


Update of /cvs-repository/Zope2/lib/python/DocumentTemplate
In directory korak.digicool.com:/tmp/cvs-serv11220/lib/python/DocumentTemplate

Modified Files:
	DT_Var.py 
Log Message:
Collector # 2397: StructuredText could not handle underlined text
properly. Also <dtml-var stxdoc ftm=structured-text> will no longer
produce <html>..<body>  and </body>..</html>



--- Updated File DT_Var.py in package Zope2 --
--- DT_Var.py	2001/06/18 18:12:22	1.41
+++ DT_Var.py	2001/07/12 20:04:01	1.42
@@ -410,8 +410,8 @@
 StructuredText=None
 def structured_text(v, name='(Unknown name)', md={}):
     global StructuredText
-    if StructuredText is None: import StructuredText
-    return str(StructuredText.html_with_references(str(v), 3))
+    if StructuredText is None: from StructuredText import html_with_references
+    return str(html_with_references(str(v),level=3,header=0))
 
 def sql_quote(v, name='(Unknown name)', md={}):
     """Quote single quotes in a string by doubling them.