diff --git a/modules/monitoring/application/views/helpers/PluginOutput.php b/modules/monitoring/application/views/helpers/PluginOutput.php index 1cafcc335..78eae2aef 100644 --- a/modules/monitoring/application/views/helpers/PluginOutput.php +++ b/modules/monitoring/application/views/helpers/PluginOutput.php @@ -102,7 +102,6 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract if ($command !== null) { $output = $this->hookRenderer->render($command, $output, ! $raw); } - $output = preg_replace('~]*>~', "\n", $output); if (preg_match('~<[^>]*["/\'][^>]*>~', $output)) { // HTML $output = preg_replace( diff --git a/modules/monitoring/test/php/application/views/helpers/PluginOutputTest.php b/modules/monitoring/test/php/application/views/helpers/PluginOutputTest.php index 6e136c9f8..8d8f4f2cd 100644 --- a/modules/monitoring/test/php/application/views/helpers/PluginOutputTest.php +++ b/modules/monitoring/test/php/application/views/helpers/PluginOutputTest.php @@ -92,15 +92,13 @@ class PluginOutputTest extends BaseTestCase ); /** @noinspection HtmlUnknownAttribute */ $output = array( - 'Teststatus', - ']*>Info', - '', - '', + 'Teststatus ', + ']*>Info

', ']*>Info2' ); $this->checkHtmlOutput( join("\n", $input), - join("\n", $output), + join('', $output), true ); }