Skip to content

Commit 5768953

Browse files
committed
[breaking] remove support of the legacy youtrack format
1 parent 106b77e commit 5768953

2 files changed

Lines changed: 0 additions & 24 deletions

File tree

tabulate/__init__.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -627,16 +627,6 @@ def escape_empty(val):
627627
padding=1,
628628
with_header_hide=None,
629629
),
630-
"youtrack": TableFormat(
631-
lineabove=None,
632-
linebelowheader=None,
633-
linebetweenrows=None,
634-
linebelow=None,
635-
headerrow=DataRow("|| ", " || ", " || "),
636-
datarow=DataRow("| ", " | ", " |"),
637-
padding=1,
638-
with_header_hide=None,
639-
),
640630
"html": TableFormat(
641631
lineabove=_html_begin_table_without_header,
642632
linebelowheader="",
@@ -766,7 +756,6 @@ def escape_empty(val):
766756
# TODO: Add multiline support for the remaining table formats:
767757
# - mediawiki: Replace \n with <br>
768758
# - moinmoin: TBD
769-
# - youtrack: TBD
770759
# - html: Replace \n with <br>
771760
# - latex*: Use "makecell" package: In header, replace X\nY with
772761
# \thead{X\\Y} and in data row, replace X\nY with \makecell{X\\Y}

test/test_output.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2530,19 +2530,6 @@ def test_moinmoin():
25302530
assert_equal(expected, result)
25312531

25322532

2533-
def test_youtrack():
2534-
"Output: youtrack with headers"
2535-
expected = "\n".join(
2536-
[
2537-
"|| strings || numbers ||",
2538-
"| spam | 41.9999 |",
2539-
"| eggs | 451 |",
2540-
]
2541-
)
2542-
result = tabulate(_test_table, _test_table_headers, tablefmt="youtrack")
2543-
assert_equal(expected, result)
2544-
2545-
25462533
def test_moinmoin_headerless():
25472534
"Output: moinmoin without headers"
25482535
expected = "\n".join(

0 commit comments

Comments
 (0)