summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-08-14 16:56:14 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-08-14 16:56:14 +0200
commit92c84158677f30edb8872754d92832a35420952d (patch)
treec7c14118f2f5e50de4fb36f84141b171192cd332 /scripts
parent0c954fc204a182b70e5a7bc22a65c61869b488a6 (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-xscripts/ansi2html20
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;