As a work-around, I can always remove the offending substring, but it's a 
kludge.

output = str(et.tostring(root, pretty_print=True)).replace('
', '')
print(output)
_______________________________________________
lxml - The Python XML Toolkit mailing list -- lxml@python.org
To unsubscribe send an email to lxml-le...@python.org
https://mail.python.org/mailman3/lists/lxml.python.org/
Member address: arch...@mail-archive.com

Reply via email to