Merge pull request #14740 from overleaf/mj-table-ignore-blankline

[visual] Ignore blanklines before cells

GitOrigin-RevId: d0886415c38f9c300f694169fa17bb3f66dd4202
This commit is contained in:
Mathias Jakobsen 2023-09-11 10:58:30 +01:00 committed by Copybot
parent 8668fd3a15
commit a080c7294b

View file

@ -301,7 +301,8 @@ function parseTabularBody(
} else if ( } else if (
currentChild.type.is('NewLine') || currentChild.type.is('NewLine') ||
currentChild.type.is('Whitespace') || currentChild.type.is('Whitespace') ||
currentChild.type.is('Comment') currentChild.type.is('Comment') ||
currentChild.type.is('BlankLine')
) { ) {
const lastCell = getLastCell() const lastCell = getLastCell()
if (!lastCell?.multiColumn) { if (!lastCell?.multiColumn) {