diff options
author | Florian Pritz <bluewind@xinu.at> | 2017-06-17 15:16:52 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2017-06-17 15:16:52 +0200 |
commit | 554c0d7f1ff6598ba9540a57ddb2a2f1091c08dc (patch) | |
tree | e36d5505da75fe49e917c1f6fb1c7fe0c5021f53 /application/service/renderer.php | |
parent | b6759d92bc3955d6c70735d79885f97964be84f5 (diff) |
Fix broken lineendings when rendering ascii colors
Without -m ansi2html may not close the span tags at the end of the
line. Since we wrap the output lines in our own tags those left-open
tags break the rendering. Fix it by letting ansi2html wrap lines into
tags on it's own. This adds superflous tags in the HTML, but it works
nicely.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/service/renderer.php')
-rw-r--r-- | application/service/renderer.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application/service/renderer.php b/application/service/renderer.php index c8643d53f..6f57e7458 100644 --- a/application/service/renderer.php +++ b/application/service/renderer.php @@ -38,7 +38,7 @@ class renderer { if ($lexer == "ascii") { // TODO: use exec safe and catch exception - $ret = (new \libraries\ProcRunner(array('ansi2html', '-p'))) + $ret = (new \libraries\ProcRunner(array('ansi2html', '-p', '-m'))) ->input($content) ->forbid_stderr() ->exec(); |