diff --git a/dist/nomnoml.js b/dist/nomnoml.js index a2d931f..586c234 100644 --- a/dist/nomnoml.js +++ b/dist/nomnoml.js @@ -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)) { diff --git a/src/visuals.ts b/src/visuals.ts index 76336d4..4982c3b 100644 --- a/src/visuals.ts +++ b/src/visuals.ts @@ -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])