Treat h1-h6 as block element for text/plain
authorAlexander Ebert <ebert@woltlab.com>
Wed, 14 Feb 2018 12:59:56 +0000 (13:59 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 14 Feb 2018 12:59:56 +0000 (13:59 +0100)
wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeProcessor.class.php

index 33f1ec117f294dd9e5cafa4acfd99a32d95b1400..3764acb349a0264e5fedbecc1f88a3a659d72569 100644 (file)
@@ -45,7 +45,7 @@ class HtmlOutputNodeProcessor extends AbstractHtmlNodeProcessor {
         * to text/plain content
         * @var string[]
         */
-       public static $plainTextNewlineTags = ['br', 'li', 'td', 'tr'];
+       public static $plainTextNewlineTags = ['br', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'li', 'td', 'tr'];
        
        /**
         * HtmlOutputNodeProcessor constructor.