Skip to content

Commit

Permalink
Merge pull request #1193 from phpDocumentor/fix/table-colspan
Browse files Browse the repository at this point in the history
[FIX] colspan reset
  • Loading branch information
jaapio authored Jan 10, 2025
2 parents 54f9e4d + dc81c13 commit 70c3d24
Show file tree
Hide file tree
Showing 17 changed files with 778 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private function extractTableRows(ParserContext $context): array
}

/** @param array<int, int> $columnRanges */
private function extractRow(array $columnRanges, string $line, int &$currentSpan): TableRow
private function extractRow(array $columnRanges, string $line, int $currentSpan): TableRow
{
$row = new TableRow();
$currentColumnStart = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,11 @@
<td>body row 2</td>
<td colspan="3">Cells may span columns.</td>
</tr>
<tr>
<td>body row 1, column 1</td>
<td>column 2</td>
<td>column 3</td>
<td>column 4</td>
</tr>
</tbody>
</table>
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
+------------------------+------------+----------+----------+
| body row 2 | Cells may span columns. |
+------------------------+----------------------------------+
| body row 1, column 1 | column 2 | column 3 | column 4 |
+------------------------+------------+----------+----------+
Loading

0 comments on commit 70c3d24

Please sign in to comment.