[Zope-Checkins] CVS: Zope/lib/python/DocumentTemplate - DT_Var.py:1.46

Andreas Jung andreas@zope.com
Mon, 29 Oct 2001 11:56:43 -0500


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

Modified Files:
	DT_Var.py 
Log Message:
Re-enabling inner links for STXNG only worked when using STXNG
standalone but not through DTML. Fixed !


=== Zope/lib/python/DocumentTemplate/DT_Var.py 1.45 => 1.46 ===
 def structured_text(v, name='(Unknown name)', md={}):
     global StructuredText
-    if StructuredText is None: from StructuredText import html_with_references
-    return str(html_with_references(str(v),level=3,header=0))
+    if StructuredText is None: 
+        from StructuredText.StructuredText import HTML
+    return HTML(str(v),level=3,header=0)
 
 def sql_quote(v, name='(Unknown name)', md={}):
     """Quote single quotes in a string by doubling them.