diff options
author | Florian Pritz <bluewind@xinu.at> | 2013-08-14 16:56:14 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2013-08-14 16:56:14 +0200 |
commit | 92c84158677f30edb8872754d92832a35420952d (patch) | |
tree | c7c14118f2f5e50de4fb36f84141b171192cd332 /scripts | |
parent | 0c954fc204a182b70e5a7bc22a65c61869b488a6 (diff) |
Use python-ansi2html instead of cpan module
Way, way, way, way faster. Did I mention it is faster?
Also we now have line numbers because we can.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/ansi2html | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/scripts/ansi2html b/scripts/ansi2html deleted file mode 100755 index e33e24630..000000000 --- a/scripts/ansi2html +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/perl -use strict; -use HTML::FromANSI (); - -my $h = HTML::FromANSI->new( - fill_cols => 0, - font_face => "", - style => "", - tt => 0 -); - -open IN, "<", $ARGV[0] or die "cannot read $ARGV[0]: $!"; - -$h->add_text(<IN>); -my $html = $h->html; -$html =~ s/background: black; //g; -$html =~ s/color: white; /color: black /g; -$html =~ s/<br>/\n/g; - -print $html; |