Commit 3e077f28 authored by Jérome Perrin's avatar Jérome Perrin

base: fix lxml usage in ImageUtil

parent 1bb540b2
...@@ -65,6 +65,10 @@ def transformUrlToDataURI(content): ...@@ -65,6 +65,10 @@ def transformUrlToDataURI(content):
if url_value.startswith("http"): if url_value.startswith("http"):
image.set(xlink_href, getDataURI(image.get(xlink_href))) image.set(xlink_href, getDataURI(image.get(xlink_href)))
return """<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n""" + \ return etree.tostring(
etree.tostring(root) 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