diff options
Diffstat (limited to 'frontend/classes/ansi.php')
-rw-r--r-- | frontend/classes/ansi.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/classes/ansi.php b/frontend/classes/ansi.php index 45c0462..947904b 100644 --- a/frontend/classes/ansi.php +++ b/frontend/classes/ansi.php @@ -3,7 +3,7 @@ class ansi_to_html { var $spans=0; public function process($txt) { // Clear to end of line - $txt=str_replace("\x1b[K", '', $txt); + $txt=str_replace(array("\x1b[K", "\n", "\t", ' '), array('', "<br/>\n", str_repeat(' ', 8), ' '), $txt); // Backspace while (($i=strpos($txt, chr(8))) !== false) { if ($i == 0) { |