diff options
author | sgiehl <stefan@piwik.org> | 2017-09-10 19:01:00 +0300 |
---|---|---|
committer | Stefan Giehl <stefan@piwik.org> | 2017-09-11 16:24:42 +0300 |
commit | e67b23f64d5e302580fa661516f24beb910cc615 (patch) | |
tree | f615c1a808fd7933f67cdb28ef04f892d6980fd9 /plugins/Diagnostics | |
parent | 61950f7cae32d6420a509eb11e300d12d06ce2e2 (diff) |
prevent output from beeing cut off
Diffstat (limited to 'plugins/Diagnostics')
-rw-r--r-- | plugins/Diagnostics/Commands/Run.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Diagnostics/Commands/Run.php b/plugins/Diagnostics/Commands/Run.php index 1932faae51..24c3be51fa 100644 --- a/plugins/Diagnostics/Commands/Run.php +++ b/plugins/Diagnostics/Commands/Run.php @@ -47,13 +47,13 @@ class Run extends ConsoleCommand } if (count($items) === 1) { - $output->writeln($result->getLabel() . ': ' . $this->formatItem($items[0]), OutputInterface::OUTPUT_PLAIN); + $output->writeln($result->getLabel() . ': ' . $this->formatItem($items[0]), OutputInterface::OUTPUT_NORMAL); continue; } $output->writeln($result->getLabel() . ':'); foreach ($items as $item) { - $output->writeln("\t- " . $this->formatItem($item), OutputInterface::OUTPUT_PLAIN); + $output->writeln("\t- " . $this->formatItem($item), OutputInterface::OUTPUT_NORMAL); } } @@ -82,7 +82,7 @@ class Run extends ConsoleCommand '<%s>%s %s</%s>', $tag, strtoupper($item->getStatus()), - preg_replace('/\<br\s*\/?\>/i', "\n", $item->getComment()), + preg_replace('%</?[a-z][a-z0-9]*[^<>]*>%sim', '', preg_replace('/\<br\s*\/?\>/i', "\n", $item->getComment())), $tag ); } |