I was poking around the gPodder config files today and I noticed that
channels.opml is one long line. Attached is a one-liner patch that uses
toprettyxml() to add newlines and indentation to make the file more human
readable.
nick
--- src/gpodder/opml.py 2008-02-03 10:15:28.000000000 -0500
+++ src/gpodder/opml.py 2008-02-03 19:30:00.000000000 -0500
@@ -194,7 +194,7 @@
opml.appendChild( body)
try:
- data = doc.toxml(encoding='utf-8')
+ data = doc.toprettyxml(encoding='utf-8', indent=' ', newl='\n')
# We want to have at least 512 KiB free disk space after
# saving the opml data, if this is not possible, don't
# try to save the new file, but keep the old one so we
_______________________________________________
gpodder-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/gpodder-devel