From 63caf15494c923b58bb11d805609f38c032c1531 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sat, 8 Mar 2014 08:29:39 +0000 Subject: [PATCH] Improve output styling, still inline --- .../monitoring/application/views/helpers/PluginOutput.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/monitoring/application/views/helpers/PluginOutput.php b/modules/monitoring/application/views/helpers/PluginOutput.php index 1e0677587..9ffb88bd4 100644 --- a/modules/monitoring/application/views/helpers/PluginOutput.php +++ b/modules/monitoring/application/views/helpers/PluginOutput.php @@ -18,7 +18,7 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract } elseif (preg_match('~\\\n~', $output)) { // Plaintext $output = '
'
+                    . ' width: 100%; overflow: auto; white-space: pre-wrap;">'
                . preg_replace(
               '~\\\n~', "\n", preg_replace(
                 '~\\\n\\\n~', "\n",
@@ -26,15 +26,15 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
                  preg_replace('~\[WARNING\]~', '[WARNING]',
                   preg_replace('~\[CRITICAL\]~', '[CRITICAL]',
                    preg_replace('~\@{6,}~', '@@@@@@',
-                     $this->view->escape(wordwrap($output, 80, "\n", true))
+                     $this->view->escape($output)
                 ))))
               )
             ) . '
'; } else { $output = '
'
+                    . ' width: 100%; overflow: auto; white-space: pre-wrap;">'
                . preg_replace('~\@{6,}~', '@@@@@@',
-                $this->view->escape(wordwrap($output, 80, "\n", true))
+                $this->view->escape($output)
             ) . '
'; } $output = $this->fixLinks($output);