Compare commits

..

No commits in common. '1e363f450fbadf5ffd53fa505ca5b1f303ea049d' and 'c7150784c106ba37f80c4c919f7a670f5965fcdc' have entirely different histories.

@ -1075,12 +1075,10 @@ 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']),
text_element,
E.text(to_unicode(rev['*']), space="preserve", bytes=to_unicode(size)),
)
# The username may be deleted/suppressed
if 'user' in rev:
@ -1090,7 +1088,7 @@ def makeXmlFromPage(page):
))
else:
revision.append(E.contributor(deleted="deleted"))
if 'comment' in rev and rev["comment"]:
if 'comment' in rev:
revision.append(E.comment(to_unicode(rev['comment'])))
if 'contentmodel' in rev:
revision.append(E.model(rev['contentmodel']))

Loading…
Cancel
Save