Commits

Nikolaj Sjujskij  committed bc4ff62

Do not pretty-format XHTML

Pretty-formatting of something like `<em>foo</em>.` yields redundant space
before period (or comma, or anything else) when viewing (all newlines, tabs and
spaces become one space). Since hardly anybody really cares about XML
indentation in EPUB, it should better be unprettified.

  • Participants
  • Parent commits a4810e5

Comments (0)

Files changed (1)

File rst2epub/rst.py

                 if element.hasAttribute("name"):
                     element.removeAttribute("name")
 
-            return dom.toprettyxml(indent="    ")
+            return dom.toxml()