[REM] 4-spaces indent for web view pretty-print-before-save routine
authorXavier Morel <xmo@openerp.com>
Fri, 21 Mar 2014 07:54:19 +0000 (08:54 +0100)
committerXavier Morel <xmo@openerp.com>
Fri, 21 Mar 2014 07:54:19 +0000 (08:54 +0100)
commita56dc53beaabf7ba97908f5d335f72fda9b2aa0b
treee5fe34fe75aa03e315faad283f586dbef6b1046c
parent30853afd185ba305be87940351bd69198a036a12
[REM] 4-spaces indent for web view pretty-print-before-save routine

Didn't quite work right: on the layout, it would exponentially increase
leading spaces in text nodes. Combined with a bug injecting snippets marks in
the footer (and thus invalidating and re-saving the layout at each snippet
addition) this could blow up the layout template and rendered page to >20MB.

Just keep lxml's standard 2-spaces indent.

LXML is unable to pretty print the layout anyway.

bzr revid: xmo@openerp.com-20140321075419-9w88h232r928xv5f
addons/website/models/ir_ui_view.py