Fix empty lines in CodeMetacodeConverter
authorMorik <Sebastian.Zimmer@gmx.net>
Mon, 3 Apr 2017 20:01:41 +0000 (22:01 +0200)
committerGitHub <noreply@github.com>
Mon, 3 Apr 2017 20:01:41 +0000 (22:01 +0200)
This seams to be an relict from the alpha stage where paragraphes have been handled as two new lines.
Now its a bit missleading as it looks in the editor fine and gets messed up after sending.

wcfsetup/install/files/lib/system/html/metacode/converter/CodeMetacodeConverter.class.php

index 2fe8b336631c5abc1ba39f9729e29199436a2c31..3588b6ceba88f247f6700732db379bc6fc910fc9 100644 (file)
@@ -72,7 +72,7 @@ class CodeMetacodeConverter extends AbstractMetacodeConverter {
                /** @var \DOMElement $node */
                foreach ($childNodes as $node) {
                        if ($node->nodeType === XML_ELEMENT_NODE && $node->nodeName === 'p') {
-                               DOMUtil::insertAfter($node->ownerDocument->createTextNode("\n\n"), $node);
+                               DOMUtil::insertAfter($node->ownerDocument->createTextNode("\n"), $node);
                                
                                $brs = $node->getElementsByTagName('br');
                                while ($brs->length) {