Skip to content

Commit

Permalink
Patch whitespace issue with node value
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksagona committed Feb 4, 2024
1 parent a81a434 commit e32509b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Child.php
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ public function render(int $depth = 0, ?string $indent = null, bool $inner = fal
$this->output .= ((!$this->preserveWhiteSpace) ?
'' : str_repeat(' ', $newDepth) . "{$indent}") .
"{$this->nodeValue}" . ((!$this->preserveWhiteSpace) ?
'' : "\n{$origIndent}") . "</{$this->nodeName}>" . (($this->preserveWhiteSpace) ? '' : "\n");
'' : "\n{$origIndent}") . "</{$this->nodeName}>" . ((!$this->preserveWhiteSpace) ? '' : "\n");
} else {
$this->output .= ((!$this->preserveWhiteSpace) ?
'' : "{$origIndent}") . "</{$this->nodeName}>" . ((!$this->preserveWhiteSpace) ? '' : "\n");
Expand Down

0 comments on commit e32509b

Please sign in to comment.