Example #1
0
def html_diff(old_as_text, new_as_text):  # {{{1
    """ returns a utf8 string containing the code of a html table showing
    differences of the utf8 parameters """
    old_as_text = old_as_text.splitlines()
    new_as_text = new_as_text.splitlines()
    table = HtmlDiff(tabsize=4).make_table(old_as_text, new_as_text)
    return table.replace(' ', ' ').replace(' nowrap="nowrap"', '')