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..2203333d7 100644
--- a/modules/monitoring/test/php/application/views/helpers/PluginOutputTest.php
+++ b/modules/monitoring/test/php/application/views/helpers/PluginOutputTest.php
@@ -87,16 +87,14 @@ class PluginOutputTest extends BaseTestCase
{
$input = array(
'Teststatus',
- 'Info
',
- 'Info2'
+ 'Info
'
+ . 'Info2'
);
/** @noinspection HtmlUnknownAttribute */
$output = array(
'Teststatus',
- ']*>Info',
- '',
- '',
- ']*>Info2'
+ ']*>Info
'
+ . ']*>Info2'
);
$this->checkHtmlOutput(
join("\n", $input),