GNOME Bugzilla – Bug 328161
snippets: use CDATA in XML instead of escaping every <, > character
Last modified: 2019-03-23 21:01:30 UTC
This makes the snippets readable when viewing the XML directly. I assume this needs to be done in Snippet.py, but i don't understand python to do it myself.
The system wide files are now well formatted (from indentation point of view as well as CDATA. The text and accelerator nodes are now CDATA). The usersnippets are not so well formatted. This is caused by the write method of ElementTree which snippets now uses. I'll look into writing a custom write method which does indentation and CDATA.
Created attachment 61562 [details] [review] Nice xml output This patch adds a custom xml writer to snippets so that the user xml files can also have a nice format (2 space indentation, correct use of newline).
the patch looks ok to me (not reviewed in detail), but I think we should wait after the branch. I am marking it commit-after-freeze (not sure if it's the right status, but it will do for now)
Committed to CVS HEAD.