mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Try fixing problems with docutils 0.4.
This commit is contained in:
parent
e5561f9b1b
commit
51760a0fde
@ -160,7 +160,7 @@ class EpubBuilder(StandaloneHTMLBuilder):
|
|||||||
"""Remove all HTML markup and return only the text nodes."""
|
"""Remove all HTML markup and return only the text nodes."""
|
||||||
for c in doctree.children:
|
for c in doctree.children:
|
||||||
if isinstance(c, nodes.Text):
|
if isinstance(c, nodes.Text):
|
||||||
result.append(unicode(c))
|
result.append(c)
|
||||||
else:
|
else:
|
||||||
result = self.collapse_text(c, result)
|
result = self.collapse_text(c, result)
|
||||||
return result
|
return result
|
||||||
|
Loading…
Reference in New Issue
Block a user