Beispiel #1
0
def norm_texts_history_compare(text_from, text_to):
    if text_to is None or text_from.id == text_to.id:
        return render_line_based(text_from)
    lines = _diff_line_based(text_to.text,
                             text_from.text,
                             replace_as_insert=True)
    return _line_table(lines)
Beispiel #2
0
def norm_texts_history_compare(text_from, text_to):
    if text_to is None or text_from.id == text_to.id:
        return render_line_based(text_from)
    lines = _diff_line_based(text_to.text,
                             text_from.text,
                             replace_as_insert=True)
    return _line_table(lines)
Beispiel #3
0
def norm_texts_history_compare(text_from, text_to):
    '''
    Note: Inverts from and to inside. Be prepared;)
    '''
    if text_to is None or text_from.id == text_to.id:
        return render_line_based(text_from)
    lines = _diff_line_based(text_to.text,
                             text_from.text,
                             replace_as_insert=True)
    return _line_table(lines)
Beispiel #4
0
def norm_texts_history_compare(text_from, text_to):
    '''
    Note: Inverts from and to inside. Be prepared;)
    '''
    if text_to is None or text_from.id == text_to.id:
        return render_line_based(text_from)
    lines = _diff_line_based(text_to.text,
                             text_from.text,
                             replace_as_insert=True)
    return _line_table(lines)