third_party/blink/tools/blinkpy/common/html_diff.py
def html_diff(a_text, b_text):
    """Returns a diff between two strings as HTML."""
    # Diffs can be between multiple text files of different encodings
    # so we always want to deal with them as byte arrays, not unicode strings.
    assert isinstance(a_text, str)
    assert isinstance(b_text, str)
    a_lines = a_text.splitlines(True)
    b_lines = b_text.splitlines(True)
    return _TEMPLATE % HtmlDiffGenerator().generate_tbody(a_lines, b_lines)
Returns a diff between two strings as HTML.
Returns a diff between two strings as HTML.
Returns a diff between two strings as HTML .
def html_diff(a_text, b_text):
    assert isinstance(a_text, str)
    assert isinstance(b_text, str)
    a_lines = a_text.splitlines(True)
    b_lines = b_text.splitlines(True)
    return _TEMPLATE % HtmlDiffGenerator().generate_tbody(a_lines, b_lines)
def html_diff ( a_text , b_text ) : assert isinstance ( a_text , str ) assert isinstance ( b_text , str ) a_lines = a_text . splitlines ( True ) b_lines = b_text . splitlines ( True ) return _TEMPLATE % HtmlDiffGenerator ( ) . generate_tbody ( a_lines , b_lines )
Returns a diff between two strings as HTML.
Returns a diff between two strings as HTML .
"""Returns a diff between two strings as HTML.""" # Diffs can be between multiple text files of different encodings # so we always want to deal with them as byte arrays, not unicode strings.
a_text
b_text