mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Merge pull request #1448 from da2x/patch-5
Add XML declaration to OPML output (sets utf-8)
This commit is contained in:
commit
8c977744d4
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ class OPMLExporter(Importer):
|
|||
folders = self.get_folders()
|
||||
body = SubElement(root, 'body')
|
||||
self.process_outline(body, folders, verbose=verbose)
|
||||
return tostring(root)
|
||||
return tostring(root, encoding='utf8', method='xml')
|
||||
|
||||
def process_outline(self, body, folders, verbose=False):
|
||||
for obj in folders:
|
||||
|
|
Loading…
Add table
Reference in a new issue