From a080c7294be08381046906c024116e05eb414d3b Mon Sep 17 00:00:00 2001 From: Mathias Jakobsen Date: Mon, 11 Sep 2023 10:58:30 +0100 Subject: [PATCH] Merge pull request #14740 from overleaf/mj-table-ignore-blankline [visual] Ignore blanklines before cells GitOrigin-RevId: d0886415c38f9c300f694169fa17bb3f66dd4202 --- .../features/source-editor/components/table-generator/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/frontend/js/features/source-editor/components/table-generator/utils.ts b/services/web/frontend/js/features/source-editor/components/table-generator/utils.ts index 65a9fe0bb4..86872c987e 100644 --- a/services/web/frontend/js/features/source-editor/components/table-generator/utils.ts +++ b/services/web/frontend/js/features/source-editor/components/table-generator/utils.ts @@ -301,7 +301,8 @@ function parseTabularBody( } else if ( currentChild.type.is('NewLine') || currentChild.type.is('Whitespace') || - currentChild.type.is('Comment') + currentChild.type.is('Comment') || + currentChild.type.is('BlankLine') ) { const lastCell = getLastCell() if (!lastCell?.multiColumn) {