Commit fe8749a8 authored by Jérome Perrin's avatar Jérome Perrin

base: fix lxml usage in ImageUtil

parent 6dab0261
......@@ -65,6 +65,10 @@ def transformUrlToDataURI(content):
if url_value.startswith("http"):
image.set(xlink_href, getDataURI(image.get(xlink_href)))
return """<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n""" + \
etree.tostring(root)
return etree.tostring(
root,
encoding="utf-8",
xml_declaration=True,
standalone="no",
)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment