From 47922673fc122a4eb68678a4bbbeafa12a174f79 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 1 Oct 2021 09:53:43 +0200 Subject: [PATCH] PluginOutput: Don't "optimize" two subsequent newlines to one fixes #4522 --- modules/monitoring/application/views/helpers/PluginOutput.php | 4 ---- .../test/php/application/views/helpers/PluginOutputTest.php | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/monitoring/application/views/helpers/PluginOutput.php b/modules/monitoring/application/views/helpers/PluginOutput.php index 2e0b0b64b..55c1a7147 100644 --- a/modules/monitoring/application/views/helpers/PluginOutput.php +++ b/modules/monitoring/application/views/helpers/PluginOutput.php @@ -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", '$1OK$2', @@ -52,7 +50,6 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract * @var array */ protected static $htmlPatterns = array( - '~\\\n\\\n~', '~\\\t~', '~\\\n~', '~checkOutput( 'foo\nbar\n\nraboof', - "foo\nbar\nraboof" + "foo\nbar\n\nraboof" ); }