[Zope-Checkins] CVS: Zope/lib/python/StructuredText - StructuredText.py:1.47
Andreas Jung
andreas@digicool.com
Tue, 5 Mar 2002 10:25:04 -0500
Update of /cvs-repository/Zope/lib/python/StructuredText
In directory cvs.zope.org:/tmp/cvs-serv17136
Modified Files:
StructuredText.py
Log Message:
enabled images supported for STXNG by default
=== Zope/lib/python/StructuredText/StructuredText.py 1.46 => 1.47 ===
import HTMLClass, DocumentClass, ClassicDocumentClass
+import DocumentWithImages, HTMLWithImages
from ST import Basic
import re, string,sys
@@ -24,10 +25,13 @@
Document = DocumentClass.DocumentClass()
HTMLNG = HTMLClass.HTMLClass()
+DocumentImages = DocumentWithImages.DocumentWithImages()
+HTMLNGImages = HTMLWithImages.HTMLWithImages()
+
def HTML(aStructuredString, level=1, header=1):
st = Basic(aStructuredString)
- doc = Document(st)
- return HTMLNG(doc,header=header,level=level)
+ doc = DocumentImages(st)
+ return HTMLNGImages(doc,header=header,level=level)
def StructuredText(aStructuredString, level=1):
return HTML(aStructuredString,level)