From 26f3dbbcb53acc64cbed57fb2bae8c9727836215 Mon Sep 17 00:00:00 2001 From: Linc <762699299@qq.com> Date: Mon, 20 Jan 2025 17:49:14 +0800 Subject: [PATCH] feat: add processor: exTable2 --- src/ABConverter/converter/abc_deco.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ABConverter/converter/abc_deco.ts b/src/ABConverter/converter/abc_deco.ts index 045e386..208bfd4 100644 --- a/src/ABConverter/converter/abc_deco.ts +++ b/src/ABConverter/converter/abc_deco.ts @@ -614,7 +614,9 @@ const abc_exTable = ABConvert.factory({ map_table[rowIndex][colIndex] = "^" for (let i=rowIndex-1; i>=0; i--) { const item = map_table[i][colIndex] - if (!item || typeof item == "string") break + if (!item) break + if (item == "<") break + if (item == "^") continue if (item.html.textContent == "<") break if (item.html.textContent != "^" || i==0) { item.rowSpan += 1 @@ -626,7 +628,9 @@ const abc_exTable = ABConvert.factory({ map_table[rowIndex][colIndex] = "<" for (let j=colIndex-1; j>=0; j--) { const item = map_table[rowIndex][j] - if (!item || typeof item == "string") break + if (!item) break + if (item == "^") break + if (item == "<") continue if (item.html.textContent == "^") break if (item.html.textContent != "<" || j==0) { item.colSpan += 1