Fix indent output for html/xml

This commit is contained in:
2020-03-20 12:18:13 +01:00
parent ae3bd58386
commit 5865af64f9
2 changed files with 8 additions and 3 deletions

View File

@@ -448,7 +448,11 @@ def FeedFormat(rss, options):
return rss.tocsv(encoding='UTF-8')
elif options.reader:
return rss.tohtml(encoding='UTF-8')
if options.indent:
return rss.tohtml(encoding='UTF-8', pretty_print=True)
else:
return rss.tohtml(encoding='UTF-8')
else:
if options.indent: