remove empty <comment> if no comment provided

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

@ -1090,7 +1090,7 @@ def makeXmlFromPage(page):
))
else:
revision.append(E.contributor(deleted="deleted"))
if 'comment' in rev:
if 'comment' in rev and rev["comment"]:
revision.append(E.comment(to_unicode(rev['comment'])))
if 'contentmodel' in rev:
revision.append(E.model(rev['contentmodel']))

Loading…
Cancel
Save