Closed hakonhagland closed 7 months ago
should we run this script once on all files and commit that?
@lisajulia Yes that was the idea! I have already submitted a PR that does that, see #172
should we run this script once on all files and commit that?
@lisajulia Yes that was the idea! I have already submitted a PR that does that, see #172
Ahhh ok, sorry I had not seen the other PR ...
Note: this PR builds on #170 which should be merged first.
Created a script that runs the Python
xml.sax
parser on all XML files and then writes back the content in the same way as LibreOffice writes XML. That is: it escapes&
,<
,>
,'
, and"
and uses the short form<tag/>
for empty tags instead of the long form<tag></tag>
.By running this filter once on all files, we should hopefully get smaller PR diffs in the future since the Python scripts and LibreOffice should now agree on the format.