![](https://secure.gravatar.com/avatar/8b97b5aad24c30e4a1357b38cc39aeaa.jpg?s=120&d=mm&r=g)
8 Feb
2009
8 Feb
'09
4:17 a.m.
Ronny Pfannschmidt wrote:
i'm currently porting gazpacho (a wysiwyg gtk ui file editor) to lxml, unfortunately the pretty printer prints with an indent of 2 and in order to match the convention i need an indent of 4
is there any simple way to archive pretty dumping to a file with an indent of 4?
I just remembered that Fredrik has an indentation function for ElementTree: http://effbot.org/zone/element-lib.htm Most of the stuff on that page should work unchanged with lxml.etree. Stefan