Skip to content

Commit f38014a

Browse files
committed
Fix 'header' type with only one row (see pull request #5)
1 parent 3beb4ac commit f38014a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function genPTT(){
103103
str += '\n';
104104
}
105105

106-
if (('grid' == typeOption && k < arr.length-1) || ('header' == typeOption && k == 0)) {
106+
if (('grid' == typeOption && k < arr.length-1) || ('header' == typeOption && k == 0 && k < arr.length-1)) {
107107
str += generateSeparationLine(widths, style, 'middle_left', 'middle_center', 'middle_right');
108108
}
109109
}

0 commit comments

Comments
 (0)