We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e26c454 commit 426abbeCopy full SHA for 426abbe
1 file changed
textile/utils.py
@@ -73,6 +73,7 @@ def generate_tag(tag, content, attributes=None):
73
# Python 2.6 doesn't have the tostringlist method, so we have to treat
74
# it differently.
75
element_tag = ElementTree.tostring(element, encoding=enc)
76
+ element_tag = [v.decode(enc) for v in element_tag]
77
element_text = re.sub(r"<\?xml version='1.0' encoding='UTF-8'\?>\n",
78
'', element_tag)
79
if content != six.text_type(' /'):
0 commit comments