Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
7a389ac6
Commit
7a389ac6
authored
Feb 11, 2002
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Collector #210: HTML() function of StructuredText produced wrong
<h0> tags.
parent
e0e06083
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
doc/CHANGES.txt
doc/CHANGES.txt
+3
-0
lib/python/StructuredText/__init__.py
lib/python/StructuredText/__init__.py
+3
-2
No files found.
doc/CHANGES.txt
View file @
7a389ac6
...
...
@@ -13,6 +13,9 @@ Zope Changes
- Collector #207: fixed problem with inner links in STXNG
- Collector #210: HTML() function of StructuredText produced wrong
<h0> tags.
Zope 2.5.1 beta 1
Bugs Fixed
...
...
lib/python/StructuredText/__init__.py
View file @
7a389ac6
...
...
@@ -17,13 +17,14 @@ from StructuredText import html_with_references, HTML, html_quote
from
ST
import
Basic
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment