Skip to content

Commit b586bec

Browse files
committed
Added tabsize option
1 parent fc4e100 commit b586bec

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Show differences between files in a two column view.
3838
--show-all-spaces color all non-matching whitespace including that which
3939
is not needed for drawing the eye to changes. Slow,
4040
ugly, displays all changes
41+
--tabsize=TABSIZE tab stop spacing
4142
-u, --patch generate patch. This is always true, and only exists
4243
for compatibility
4344
-U NUM, --unified=NUM, --numlines=NUM

icdiff

+4-1
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,8 @@ def start():
467467
help="color all non-matching whitespace including "
468468
"that which is not needed for drawing the eye to "
469469
"changes. Slow, ugly, displays all changes")
470+
parser.add_option("--tabsize", default=8,
471+
help="tab stop spacing")
470472
parser.add_option("-u", "--patch", default=True,
471473
action="store_true",
472474
help="generate patch. This is always true, "
@@ -590,7 +592,8 @@ def diff_files(options, a, b):
590592
show_all_spaces=options.show_all_spaces,
591593
highlight=options.highlight,
592594
no_bold=options.no_bold,
593-
line_numbers=options.line_numbers)
595+
line_numbers=options.line_numbers,
596+
tabsize=int(options.tabsize))
594597
for line in cd.make_table(
595598
lines_a, lines_b, headers[0], headers[1],
596599
context=(not options.whole_file),

0 commit comments

Comments
 (0)