XML pretty-print in separate option
Who reads plain XML anyway?
This commit is contained in:
@@ -631,7 +631,10 @@ def Format(rss, options):
|
||||
elif options.reader:
|
||||
return rss.tohtml()
|
||||
else:
|
||||
return rss.tostring(xml_declaration=True, encoding='UTF-8')
|
||||
if options.indent:
|
||||
return rss.tostring(xml_declaration=True, encoding='UTF-8', pretty_print=True)
|
||||
else:
|
||||
return rss.tostring(xml_declaration=True, encoding='UTF-8')
|
||||
|
||||
|
||||
def process(url, cache=None, options=None):
|
||||
|
Reference in New Issue
Block a user