plomino/Plomino — pull request #313 by jean (2013-04-24 11:13:34+00:00)
Title: Jean pretty layout

This can lose some info if the HTML is weird, e.g.:

>>> ss = u'''

TEXT

'''
# First comment is lost
>>> [e for e in etree.parse(StringIO(ss), parser).iter()]
[, , , , , , ]
>>> ss = u'''

NSW SWIMMING POOL REGISTER

'''
# First comment is kept
>>> [e for e in etree.parse(StringIO(ss), parser).iter()][, , , , , , , , ]

For me the benefits outweigh this concern.