Output pretty-printed OPML when saving channels list
git-svn-id: svn://svn.berlios.de/gpodder/trunk@559 b0d088ad-0a06-0410-aad2-9ed5178a7e87
This commit is contained in:
parent
620f1ba1ce
commit
5e221634d5
|
@ -1,3 +1,10 @@
|
|||
Mon, 04 Feb 2008 09:32:56 +0100 <thp@perli.net>
|
||||
Output pretty-printed OPML when saving channels list
|
||||
|
||||
* src/gpodder/opml.py: Patch from Nick (nikosapi.org) to output the
|
||||
channels.opml file pretty-printed, so it's easier to read and easier
|
||||
to edit when working on the file outside of gPodder
|
||||
|
||||
Sun, 03 Feb 2008 23:02:47 +0100 <thp@perli.net>
|
||||
Don't code late at night, it breaks the sync code ;)
|
||||
|
||||
|
|
|
@ -194,7 +194,7 @@ class Exporter(object):
|
|||
opml.appendChild( body)
|
||||
|
||||
try:
|
||||
data = doc.toxml(encoding='utf-8')
|
||||
data = doc.toprettyxml(encoding='utf-8', indent=' ', newl=os.linesep)
|
||||
# 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
|
||||
|
|
Loading…
Reference in New Issue