Commit 08c507ea authored by Chris McDonough's avatar Chris McDonough

StructuredTextNG's HTMLClass ordered and unordered list output (for numbered...

StructuredTextNG's HTMLClass ordered and unordered list output (for numbered and bulleted items respectively) differed unnecessarily from ClassicStructuredText's HTML output by not inserting a surrounding the list text with a paragraph tag. Both now do surround list text with a paragraph tag.
parent 1ef48cb4
......@@ -174,11 +174,11 @@ class HTMLClass:
p=doc.getPreviousSibling()
if p is None or p.getNodeName() is not doc.getNodeName():
output('\n<ul>\n')
output('<li>')
output('<li><p>')
for c in doc.getChildNodes():
getattr(self, self.element_types[c.getNodeName()])(c, level, output)
n=doc.getNextSibling()
output('</li>\n')
output('</p></li>\n')
if n is None or n.getNodeName() is not doc.getNodeName():
output('\n</ul>\n')
......@@ -186,11 +186,11 @@ class HTMLClass:
p=doc.getPreviousSibling()
if p is None or p.getNodeName() is not doc.getNodeName():
output('\n<ol>\n')
output('<li>')
output('<li><p>')
for c in doc.getChildNodes():
getattr(self, self.element_types[c.getNodeName()])(c, level, output)
n=doc.getNextSibling()
output('</li>\n')
output('</p></li>\n')
if n is None or n.getNodeName() is not doc.getNodeName():
output('\n</ol>\n')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment