We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2d6b8b2 + 8ce5407 commit 9d82cecCopy full SHA for 9d82cec
src/PhpSpreadsheet/Helper/TextGrid.php
@@ -48,7 +48,7 @@ function (&$row): void {
48
49
public function render(): string
50
{
51
- $this->gridDisplay = $this->isCli ? '' : '<code>';
+ $this->gridDisplay = $this->isCli ? '' : '<pre>';
52
53
$maxRow = max($this->rows);
54
$maxRowLength = strlen((string) $maxRow) + 1;
@@ -58,7 +58,7 @@ public function render(): string
58
$this->renderRows($maxRowLength, $columnWidths);
59
$this->renderFooter($maxRowLength, $columnWidths);
60
61
- $this->gridDisplay .= $this->isCli ? '' : '</code>';
+ $this->gridDisplay .= $this->isCli ? '' : '</pre>';
62
63
return $this->gridDisplay;
64
}
0 commit comments