Skip to content

Commit 2ab5d90

Browse files
committed
built-in "tsv" table format
1 parent 41a6db2 commit 2ab5d90

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tabulate.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,13 @@ def _latex_line_begin_tabular(colwidths, colaligns):
178178
linebelow=Line("\\hline\n\\end{tabular}", "", "", ""),
179179
headerrow=DataRow("", "&", "\\\\"),
180180
datarow=DataRow("", "&", "\\\\"),
181-
padding=1, with_header_hide=None)}
181+
padding=1, with_header_hide=None),
182+
"tsv":
183+
TableFormat(lineabove=None, linebelowheader=None,
184+
linebetweenrows=None, linebelow=None,
185+
headerrow=DataRow("", "\t", ""),
186+
datarow=DataRow("", "\t", ""),
187+
padding=0, with_header_hide=None)}
182188

183189

184190
tabulate_formats = list(sorted(_table_formats.keys()))

0 commit comments

Comments
 (0)