Skip to content
Snippets Groups Projects
Commit dffceed3 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Fix for merged rows

parent e79c72d3
No related branches found
No related tags found
1 merge request!1Restructuring and cleaning scripts for Mkdocs
......@@ -413,7 +413,7 @@ def parseGridTableWithSpans(gridTable:str) -> tuple[GridTableRowList, GridTableR
rowIndex = rowsTracker[columnCellIndex] # Correcting the rowIndex. Might have been changed by a previous iteration
if rows[rowIndex][columnCellIndex].position >= delimiterPositions[delIndex]:
columnForward += 1
rowsTracker[columnCellIndex + columnForward - 1] += 1 if columnForward > 1 else 0
rowsTracker[columnCellIndex + columnForward - 1] = max(rowsTracker) + 1 if columnForward > 1 else 0
columnCellIndex += columnForward
continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment