Skip to content

Commit

Permalink
Fix vertical table on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Feb 20, 2024
1 parent 2aaf83b commit 155f2f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Helper/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,8 @@ public function render()
for ($i = 0; $i < $maxRows; ++$i) {
$cell = (string) ($row[$i] ?? '');

$parts = explode("\n", $cell);
$eol = str_contains($cell, "\r\n") ? "\r\n" : "\n";
$parts = explode($eol, $cell);
foreach ($parts as $idx => $part) {
if ($headers && !$containsColspan) {
if (0 === $idx) {
Expand Down

0 comments on commit 155f2f3

Please sign in to comment.