Skip to content

Commit

Permalink
feat: add processor: exTable2
Browse files Browse the repository at this point in the history
  • Loading branch information
LincZero committed Jan 20, 2025
1 parent ad6b70a commit 26f3dbb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/ABConverter/converter/abc_deco.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 26f3dbb

Please sign in to comment.