Try fixing problems with docutils 0.4.

This commit is contained in:
Georg Brandl 2009-12-29 12:48:48 +01:00
parent e5561f9b1b
commit 51760a0fde

View File

@ -160,7 +160,7 @@ class EpubBuilder(StandaloneHTMLBuilder):
"""Remove all HTML markup and return only the text nodes."""
for c in doctree.children:
if isinstance(c, nodes.Text):
result.append(unicode(c))
result.append(c)
else:
result = self.collapse_text(c, result)
return result