Skip to content

Commit 0bdffa9

Browse files
authored
add mysql_heavy table format (#113)
Like mysql_unicode, but with heavy Unicode lines.
1 parent 515fada commit 0bdffa9

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

CHANGELOG

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## Version 2.15.0
4+
5+
(released on 2026-05-16)
6+
7+
- Add `mysql_heavy` table format.
8+
39
## Version 2.14.0
410

511
(released on 2026-04-13)

cli_helpers/tabular_output/tabulate_adapter.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,17 @@
9292
with_header_hide=None,
9393
)
9494

95+
tabulate._table_formats["mysql_heavy"] = tabulate.TableFormat(
96+
lineabove=tabulate.Line("┏", "━", "┳", "┓"),
97+
linebelowheader=tabulate.Line("┣", "━", "╋", "┫"),
98+
linebetweenrows=None,
99+
linebelow=tabulate.Line("┗", "━", "┻", "┛"),
100+
headerrow=tabulate.DataRow("┃", "┃", "┃"),
101+
datarow=tabulate.DataRow("┃", "┃", "┃"),
102+
padding=1,
103+
with_header_hide=None,
104+
)
105+
95106
# "minimal" is the same as "plain", but without headers
96107
tabulate._table_formats["minimal"] = tabulate._table_formats["plain"]
97108

@@ -128,6 +139,7 @@
128139
"double",
129140
"mysql",
130141
"mysql_unicode",
142+
"mysql_heavy",
131143
)
132144

133145
supported_formats = supported_markup_formats + supported_table_formats

0 commit comments

Comments
 (0)