mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
PluginOutput: Don't "optimize" two subsequent newlines to one
fixes #4522
This commit is contained in:
parent
696dc03bb7
commit
47922673fc
@ -16,7 +16,6 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
|
|||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected static $txtPatterns = array(
|
protected static $txtPatterns = array(
|
||||||
'~\\\n\\\n~',
|
|
||||||
'~\\\t~',
|
'~\\\t~',
|
||||||
'~\\\n~',
|
'~\\\n~',
|
||||||
'~(\[|\()OK(\]|\))~',
|
'~(\[|\()OK(\]|\))~',
|
||||||
@ -34,7 +33,6 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
|
|||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected static $txtReplacements = array(
|
protected static $txtReplacements = array(
|
||||||
"\n",
|
|
||||||
"\t",
|
"\t",
|
||||||
"\n",
|
"\n",
|
||||||
'<span class="state-ok">$1OK$2</span>',
|
'<span class="state-ok">$1OK$2</span>',
|
||||||
@ -52,7 +50,6 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
|
|||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected static $htmlPatterns = array(
|
protected static $htmlPatterns = array(
|
||||||
'~\\\n\\\n~',
|
|
||||||
'~\\\t~',
|
'~\\\t~',
|
||||||
'~\\\n~',
|
'~\\\n~',
|
||||||
'~<table~'
|
'~<table~'
|
||||||
@ -64,7 +61,6 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
|
|||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected static $htmlReplacements = array(
|
protected static $htmlReplacements = array(
|
||||||
"\n",
|
|
||||||
"\t",
|
"\t",
|
||||||
"\n",
|
"\n",
|
||||||
'<table style="font-size: 0.75em"'
|
'<table style="font-size: 0.75em"'
|
||||||
|
@ -69,7 +69,7 @@ class PluginOutputTest extends BaseTestCase
|
|||||||
{
|
{
|
||||||
$this->checkOutput(
|
$this->checkOutput(
|
||||||
'foo\nbar\n\nraboof',
|
'foo\nbar\n\nraboof',
|
||||||
"foo\nbar\nraboof"
|
"foo\nbar\n\nraboof"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user