Skip to content

Commit 86fafb9

Browse files
committed
tabulate cli: fix reading from file
1 parent 1c91f2e commit 86fafb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tabulate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ def _main():
10631063
_pprint_file(f, headers=headers, tablefmt=tablefmt, sep=sep, file=out)
10641064
else:
10651065
with open(f) as fobj:
1066-
_pprint_file(fobj, file=out)
1066+
_pprint_file(fobj, headers=headers, tablefmt=tablefmt, sep=sep, file=out)
10671067

10681068

10691069
def _pprint_file(fobject, headers, tablefmt, sep, file):

0 commit comments

Comments
 (0)