diff --git a/src/Child.php b/src/Child.php index 6e72ddf..c0af446 100644 --- a/src/Child.php +++ b/src/Child.php @@ -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") . - "nodeName}>" . ((!$this->preserveWhiteSpace) ? '' : "\n"); + $this->output .= "{$this->nodeValue}nodeName}>" . ((!$this->preserveWhiteSpace) ? '' : "\n"); } else { $this->output .= " />"; if ($this->preserveWhiteSpace) {