--xmlapiexport: xml: add <minor>

pull/475/head
yzqzss 12 months ago committed by Rob Kam
parent 74be6e669b
commit c19e8d637e

@ -51,10 +51,9 @@ def reconstructRevisions(root=None):
# no comment or empty comment, do not create comment element
pass
# some revision does not return model and format, so just use hard-code
# TODO: not hard-code here
ET.SubElement(rev_,'model').text = 'wikitext'
ET.SubElement(rev_,'format').text = 'text/x-wiki'
# minor edit (optional)
if 'minor' in rev.attrib:
ET.SubElement(rev_,'minor')
text = ET.SubElement(rev_,'text')
if 'texthidden' not in rev.attrib:
text.attrib['xml:space'] = "preserve"

Loading…
Cancel
Save