'Add linebreaks to ElementTree root object.'

def run(self, root):

    self._prettifyETree(root)
    brs = root.getiterator('br')
    for br in brs:
        if ((not br.tail) or (not br.tail.strip())):
            br.tail = '\n'
        else:
            br.tail = ('\n%s' % br.tail)
