aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmarkdown.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown.py b/markdown.py
index 2d24e02..99d3980 100755
--- a/markdown.py
+++ b/markdown.py
@@ -1919,7 +1919,7 @@ class Markdown:
indentETree(root)
- xml = codecs.decode(etree.tostring(root, encoding="utf8"), "utf8")
+ xml, length = codecs.utf_8_decode(etree.tostring(root, encoding="utf8"))
if self.stripTopLevelTags:
xml = xml.strip()[44:-7] + "\n"