How to use the icdiff.ConsoleDiff.make_table function in icdiff

To help you get started, we’ve selected a few icdiff examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jeffkaufman / icdiff / icdiff.py View on Github external
else:
            options.cols = 80

    headers = a, b
    if not options.print_headers:
        headers = None, None

    head = int(options.head)
    lines_a = open(a, "U").readlines()
    lines_b = open(b, "U").readlines()

    if head != 0:
        lines_a = lines_a[:head]
        lines_b = lines_b[:head]
        
    print ConsoleDiff(cols=int(options.cols),
                      show_all_spaces=options.show_all_spaces,
                      highlight=options.highlight,
                      line_numbers=options.line_numbers).make_table(
        lines_a, lines_b, headers[0], headers[1], context=options.context, numlines=int(options.numlines))

icdiff

improved colored diff

Python-2.0
Latest version published 1 year ago

Package Health Score

63 / 100
Full package analysis

Similar packages