mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-06-04 13:05:31 -04:00
compat with newer lxml
This commit is contained in:
@@ -72,7 +72,7 @@ def _checkExists(filename):
|
||||
|
||||
def _formatXml(root):
|
||||
""" A helper to make the LRS output look nicer. """
|
||||
for elem in root.getiterator():
|
||||
for elem in root.iter():
|
||||
if len(elem) > 0 and (not elem.text or not elem.text.strip()):
|
||||
elem.text = "\n"
|
||||
if not elem.tail or not elem.tail.strip():
|
||||
|
||||
Reference in New Issue
Block a user