Просмотр исходного кода

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

[visual] Ignore blanklines before cells

GitOrigin-RevId: d0886415c38f9c300f694169fa17bb3f66dd4202
Mathias Jakobsen 3 лет назад
Родитель
Сommit
a080c7294b

+ 2 - 1
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) {