PluginOutput: Don't "optimize" two subsequent newlines to one

fixes #4522
This commit is contained in:
Johannes Meyer 2021-10-01 09:53:43 +02:00
parent 696dc03bb7
commit 47922673fc
2 changed files with 1 additions and 5 deletions

View File

@ -16,7 +16,6 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
* @var array
*/
protected static $txtPatterns = array(
'~\\\n\\\n~',
'~\\\t~',
'~\\\n~',
'~(\[|\()OK(\]|\))~',
@ -34,7 +33,6 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
* @var array
*/
protected static $txtReplacements = array(
"\n",
"\t",
"\n",
'<span class="state-ok">$1OK$2</span>',
@ -52,7 +50,6 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
* @var array
*/
protected static $htmlPatterns = array(
'~\\\n\\\n~',
'~\\\t~',
'~\\\n~',
'~<table~'
@ -64,7 +61,6 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
* @var array
*/
protected static $htmlReplacements = array(
"\n",
"\t",
"\n",
'<table style="font-size: 0.75em"'

View File

@ -69,7 +69,7 @@ class PluginOutputTest extends BaseTestCase
{
$this->checkOutput(
'foo\nbar\n\nraboof',
"foo\nbar\nraboof"
"foo\nbar\n\nraboof"
);
}