8000 SimpleUnicode style. · markkurossi/tabulate@b414277 · GitHub
[go: up one dir, main page]

Skip to content

Commit b414277

Browse files
committed
SimpleUnicode style.
1 parent ddda87b commit b414277

File tree

1 file changed

+27
-14
lines changed

1 file changed

+27
-14
lines changed

tabulate.go

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -66,23 +66,25 @@ const (
6666
UnicodeBold
6767
Colon
6868
Simple
69+
SimpleUnicode
6970
Github
7071
CSV
7172
JSON
7273
)
7374

7475
// Styles list all supported tabulation types.
7576
var Styles = map[string]Style{
76-
"plain": Plain,
77-
"ascii:": ASCII,
78-
"uc": Unicode,
79-
"uclight": UnicodeLight,
80-
"ucbold": UnicodeBold,
81-
"colon": Colon,
82-
"simple": Simple,
83-
"github": Github,
84-
"csv": CSV,
85-
"json": JSON,
77+
"plain": Plain,
78+
"ascii:": ASCII,
79+
"uc": Unicode,
80+
"uclight": UnicodeLight,
81+
"ucbold": UnicodeBold,
82+
"colon": Colon,
83+
"simple": Simple,
84+
"simpleuc": SimpleUnicode,
85+
"github": Github,
86+
"csv": CSV,
87+
"json": JSON,
8688
}
8789

8890
// Border specifies the table border drawing elements.
@@ -226,12 +228,23 @@ var borders = map[Style]Borders{
226228
Simple: {
227229
Header: Border{
228230
HM: "-",
229-
VM: " ",
230-
MM: " ",
231+
VM: " ",
232+
MM: " ",
231233
},
232234
Body: Border{
233-
VM: " ",
234-
MM: " ",
235+
VM: " ",
236+
MM: " ",
237+
},
238+
},
239+
SimpleUnicode: {
240+
Header: Border{
241+
HM: "\u2501",
242+
VM: " ",
243+
MM: " ",
244+
},
245+
Body: Border{
246+
VM: " ",
247+
MM: " ",
235248
},
236249
},
237250
Github: {

0 commit comments

Comments
 (0)
0