Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Compare two HTML strings; generate the delta as a unified diff.

`ignorews` controls whether whitespace differences in text
events are ignored.

        def html_diff(expected, compared, whitespace=True):
    """
    Compare two HTML strings; generate the delta as a unified diff.

    `ignorews` controls whether whitespace differences in text
    events are ignored.
    """
    expected = _html_sequence(expected, whitespace)
    compared = _html_sequence(compared, whitespace)
    return difflib.unified_diff(expected, compared, 'expected', 'compared',
                                n=2, lineterm='')
        


src/a/m/Amara-2.0.0/test/xslt/__init__.py   Amara(Download)
            diff = treecompare.xml_diff(expected, compared)
        elif method == (None, 'html'):
            diff = treecompare.html_diff(expected, compared)
        else:
            expected = expected.splitlines()