فهرست منبع

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

[visual] Ignore blanklines before cells

GitOrigin-RevId: d0886415c38f9c300f694169fa17bb3f66dd4202
Mathias Jakobsen 3 سال پیش
والد
کامیت
a080c7294b
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      services/web/frontend/js/features/source-editor/components/table-generator/utils.ts

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