@@ -72,23 +72,23 @@ object ASCIIHelpers {
72
72
73
73
val sb = new StringBuffer
74
74
75
- val barH = if (asciiOnly) " # " else " ─"
76
- val topLeft = if (asciiOnly) " # " else " ┌"
77
- val topRight = if (asciiOnly) " # " else " ┐"
78
- val bottomLeft = if (asciiOnly) " # " else " └"
79
- val bottomRight = if (asciiOnly) " # " else " ┘"
75
+ val barH = if (asciiOnly) " " else " ─"
76
+ val topLeft = if (asciiOnly) " " else " ┌"
77
+ val topRight = if (asciiOnly) " " else " ┐"
78
+ val bottomLeft = if (asciiOnly) " " else " └"
79
+ val bottomRight = if (asciiOnly) " " else " ┘"
80
80
val dots = if (asciiOnly) " ." else " ┄"
81
- val doubleBarH = if (asciiOnly) " # " else " ═"
82
- val doubleBarV = if (asciiOnly) " # " else " ║"
83
- val doubleTopLeft = if (asciiOnly) " # " else " ╔"
84
- val doubleTopRight = if (asciiOnly) " # " else " ╗"
85
- val doubleBottomLeft = if (asciiOnly) " # " else " ╚"
86
- val doubleBottomRight = if (asciiOnly) " # " else " ╝"
87
-
88
- val leftConnect = if (asciiOnly) " # " else " ╡"
89
- val rightConnect = if (asciiOnly) " # " else " ╞"
90
- val doubleRightConnect = if (asciiOnly) " # " else " ╟"
91
- val doubleLeftConnect = if (asciiOnly) " # " else " ╢"
81
+ val doubleBarH = if (asciiOnly) " " else " ═"
82
+ val doubleBarV = if (asciiOnly) " " else " ║"
83
+ val doubleTopLeft = if (asciiOnly) " " else " ╔"
84
+ val doubleTopRight = if (asciiOnly) " " else " ╗"
85
+ val doubleBottomLeft = if (asciiOnly) " " else " ╚"
86
+ val doubleBottomRight = if (asciiOnly) " " else " ╝"
87
+
88
+ val leftConnect = if (asciiOnly) " " else " ╡"
89
+ val rightConnect = if (asciiOnly) " " else " ╞"
90
+ val doubleRightConnect = if (asciiOnly) " " else " ╟"
91
+ val doubleLeftConnect = if (asciiOnly) " " else " ╢"
92
92
93
93
sb append s " $topLeft$barH" + (barH * titleWidth) + s " $barH$topRight\n "
94
94
sb append s " $doubleTopLeft$doubleBarH$leftConnect " + title + s " $rightConnect" + (doubleBarH * padWidth) + s " $doubleTopRight\n "
@@ -99,7 +99,7 @@ object ASCIIHelpers {
99
99
sb append doubleRightConnect + (dots * fullWidth) + s " $doubleLeftConnect\n "
100
100
101
101
case Row (cells) =>
102
- sb append s " $doubleBarV "
102
+ if ( ! asciiOnly) sb append s " $doubleBarV "
103
103
var i = 0
104
104
for (c <- cells) {
105
105
if (i > 0 ) {
0 commit comments