[Zope-Checkins] CVS: Zope/lib/python/StructuredText - __init__.py:1.7.16.1
Andreas Jung
andreas@digicool.com
Mon, 11 Feb 2002 08:32:09 -0500
Update of /cvs-repository/Zope/lib/python/StructuredText
In directory cvs.zope.org:/tmp/cvs-serv23987/lib/python/StructuredText
Modified Files:
Tag: Zope-2_5-branch
__init__.py
Log Message:
- Collector #210: HTML() function of StructuredText produced wrong
<h0> tags.
=== Zope/lib/python/StructuredText/__init__.py 1.7 => 1.7.16.1 ===
import HTMLWithImages
import DocumentWithImages
+from types import StringType
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)