Skip to content

Commit

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

0 comments on commit a81a434

Please sign in to comment.