Skip to content

Commit d51ea2c

Browse files
committed
Remove # and leading space in ascii only mode
1 parent 4273e35 commit d51ea2c

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

src/main/scala/inox/utils/ASCIIHelpers.scala

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -72,23 +72,23 @@ object ASCIIHelpers {
7272

7373
val sb = new StringBuffer
7474

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 ""
8080
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 ""
9292

9393
sb append s" $topLeft$barH" + (barH * titleWidth) + s"$barH$topRight\n"
9494
sb append s"$doubleTopLeft$doubleBarH$leftConnect " + title + s" $rightConnect" + (doubleBarH * padWidth) + s"$doubleTopRight\n"
@@ -99,7 +99,7 @@ object ASCIIHelpers {
9999
sb append doubleRightConnect + (dots * fullWidth) + s"$doubleLeftConnect\n"
100100

101101
case Row(cells) =>
102-
sb append s"$doubleBarV "
102+
if (!asciiOnly) sb append s"$doubleBarV "
103103
var i = 0
104104
for (c <- cells) {
105105
if (i > 0) {

0 commit comments

Comments
 (0)