'Add linebreaks to ElementTree root object.'

def run(self, root):

    self._prettifyETree(root)
    brs = root.iter(u'br')
    for br in brs:
        if ((not br.tail) or (not br.tail.strip())):
            br.tail = u'\n'
        else:
            br.tail = (u'\n%s' % br.tail)
    pres = root.iter(u'pre')
    for pre in pres:
        if (len(pre) and (pre[0].tag == u'code')):
            pre[0].text = util.AtomicString((pre[0].text.rstrip() + u'\n'))
