[lxml-dev] pretty-print and declaration stripping patch update
Folks, I've updated the pretty-print and declaration stripping patches for the most recent code base. Along the way I realized that due to the new way of writing out the XML, calling _stripDeclaration was not necessary in write (in etree.py). I've fixed the code so it now can output an xml declaration with the document. Syntax is the same as the last series of posts. Thanks! --Patrick
Patrick Wagstrom wrote:
I've updated the pretty-print and declaration stripping patches for the most recent code base. Along the way I realized that due to the new way of writing out the XML, calling _stripDeclaration was not necessary in write (in etree.py). I've fixed the code so it now can output an xml declaration with the document.
Syntax is the same as the last series of posts.
Thanks, Patrick. However, I think we should apply the patch that Geert is working on. It should mainly adhere to the same interface, but be more complete, as it also integrates declaration stripping and XHTML support. So, if Geert gets it done reasonably soon, I prefer getting his work in for 0.9. Otherwise, your patch may still provide a good step towards the final version. Stefan
participants (2)
-
Patrick Wagstrom
-
Stefan Behnel