fix: incorrect xml space attr in <text>

pull/464/head
yzqzss 12 months ago
parent 0621adf0a3
commit 522807d25d

@ -1075,10 +1075,12 @@ def makeXmlFromPage(page):
size = rev['size']
else:
size = 0
text_element = E.text(to_unicode(rev["*"]), bytes=to_unicode(size))
text_element.set("{http://www.w3.org/XML/1998/namespace}space", "preserve")
revision = E.revision(
E.id(to_unicode(rev['revid'])),
E.timestamp(rev['timestamp']),
E.text(to_unicode(rev['*']), space="preserve", bytes=to_unicode(size)),
text_element,
)
# The username may be deleted/suppressed
if 'user' in rev:

Loading…
Cancel
Save