From 6698a1397e782cca41a4bf05a0eea480792934e5 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sat, 3 Jun 2017 01:44:38 +0200 Subject: mutt/tiny.pl: Switch from elinks to w3m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit w3m dumps things a bit nicer sometimes Signed-off-by: Johannes Löthberg --- mutt/tiny.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mutt/tiny.pl b/mutt/tiny.pl index 06b51b7..b157372 100755 --- a/mutt/tiny.pl +++ b/mutt/tiny.pl @@ -16,7 +16,7 @@ $tinyurltrigger = 40; # If we pass a 2nd argument, it means we want to force HTML check a 'text/plain' file if(defined($ARGV[2])) { open(FP, $file); for() { push(@text, $_); } close(FP); } # Otherwise, treat as HTML first -else { @text = `elinks -dump -dump-charset $ARGV[1] -default-mime-type text/html $file`; } +else { @text = `w3m -dump -o display_link_number=1 -o document_charset=$ARGV[1] $file`; } # Note: using while (instead of for) b/c for supposedly loads -- cgit v1.2.3-70-g09d2