Skip to content

Commit

Permalink
Merge pull request #1194 from phpDocumentor/backport/1.x/pr-1193
Browse files Browse the repository at this point in the history
[1.x] Merge pull request #1193 from phpDocumentor/fix/table-colspan
  • Loading branch information
phpdoc-bot authored Jan 10, 2025
2 parents 7ff4221 + edc712a commit 9cd73d3
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 9cd73d3

Please sign in to comment.