Skip to content

Commit

Permalink
more robust table syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
skanaar committed Aug 31, 2020
1 parent e7a1c0f commit 8e261c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/nomnoml.js
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,7 @@ var nomnoml;
}
for (var _i = 0, gridcells_1 = gridcells; _i < gridcells_1.length; _i++) {
var comp = gridcells_1[_i];
if (!isEnd(comp) && isRowBreak(comp)) {
if (!isEnd(comp) && isRowBreak(comp) && nomnoml.skanaar.last(rows).length) {
rows.push([]);
}
else if (isRowFull(comp)) {
Expand Down
2 changes: 1 addition & 1 deletion src/visuals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ namespace nomnoml {
return comp == skanaar.last(gridcells)
}
for (var comp of gridcells) {
if (!isEnd(comp) && isRowBreak(comp)) {
if (!isEnd(comp) && isRowBreak(comp) && skanaar.last(rows).length) {
rows.push([])
} else if (isRowFull(comp)) {
rows.push([comp])
Expand Down

0 comments on commit 8e261c2

Please sign in to comment.