@staticmethod
def fix_table(tree):
    """
        Force tables to have table-layout: auto, no borders on table data
        """
    for table in tree.findall('.//table'):
        table.set('style', 'table-layout:auto')
        for td in table.findall('.//td'):
            newstyle = td.get('style', '')
            if newstyle:
                newstyle += '; '
            newstyle += 'border:none'
            td.set('style', newstyle)
