Hi guys,

just found "hidden" in the "Schema change in Etree"-Thread the answer to my formatting question:

Quotation:
"
ElementTree doesn't have a way of formatting (pretty printing) XML files, so there can't be that many newline characters in the structure (they may be in the occur, though!). There's a pretty printing recipe on the effbot site that you can easily adapt to inject the newline characters you need.
"

The recipe works fine.

Cheers,

Jan
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to