diff --git a/src/zope/structuredtext/docbook.py b/src/zope/structuredtext/docbook.py index ab1c040..44f9d13 100644 --- a/src/zope/structuredtext/docbook.py +++ b/src/zope/structuredtext/docbook.py @@ -135,18 +135,13 @@ def numbered(self, doc, level, output): self._list(doc, level, output, 'orderedlist') def example(self, doc, level, output): - i = 0 for c in doc.getChildNodes(): - if i == 0: - output('\n' in your body will break this... - ## - output(prestrip(c.getNodeValue())) - output('\n]]>\n') - else: - getattr(self, self.element_types[c.getNodeName()])( - c, level, output) + output('\n' in your body will break this... + ## + output(prestrip(c.getNodeValue())) + output('\n]]>\n') def paragraph(self, doc, level, output): output('\n\n') diff --git a/src/zope/structuredtext/html.py b/src/zope/structuredtext/html.py index 44ca150..1012ddf 100644 --- a/src/zope/structuredtext/html.py +++ b/src/zope/structuredtext/html.py @@ -138,16 +138,10 @@ def numbered(self, doc, level, output): self._list(doc, level, output, "ol") def example(self, doc, level, output): - i = 0 for c in doc.getChildNodes(): - if i == 0: - output('\n
\n')
-                output(escape(c.getNodeValue()))
-                output('\n
\n') - # XXX: Nothing ever changes the value of i! - else: - getattr(self, self.element_types[c.getNodeName()])( - c, level, output) + output('\n
\n')
+            output(escape(c.getNodeValue()))
+            output('\n
\n') def paragraph(self, doc, level, output): output('

')