[Zope-Checkins] CVS: Zope/lib/python/StructuredText - __init__.py:1.8
Andreas Jung
andreas@digicool.com
Mon, 11 Feb 2002 08:29:02 -0500
Update of /cvs-repository/Zope/lib/python/StructuredText
In directory cvs.zope.org:/tmp/cvs-serv23172/lib/python/StructuredText
Modified Files:
__init__.py
Log Message:
- Collector #210: HTML() function of StructuredText produced wrong
<h0> tags.
=== Zope/lib/python/StructuredText/__init__.py 1.7 => 1.8 ===
import DocBookClass
import HTMLWithImages
+from types import StringType
import DocumentWithImages
ClassicHTML=HTML
HTMLNG=HTMLClass.HTMLClass()
-def HTML(src, level=0, type=type, StringType=type('')):
- if type(src) is StringType:
+def HTML(src, level=1):
+ if isinstance(src, StringType):
return ClassicHTML(src, level)
return HTMLNG(src, level)