diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2017-06-03 01:44:38 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2017-06-03 01:44:38 +0200 |
commit | 6698a1397e782cca41a4bf05a0eea480792934e5 (patch) | |
tree | 72b62c9a1724a32e2e00776d2042422e4ff31407 | |
parent | 7e197e3b77867401a4fcbc243576f8319ed90d4f (diff) | |
download | dotfiles-6698a1397e782cca41a4bf05a0eea480792934e5.tar.xz |
mutt/tiny.pl: Switch from elinks to w3m
w3m dumps things a bit nicer sometimes
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rwxr-xr-x | mutt/tiny.pl | 2 |
1 files changed, 1 insertions, 1 deletions
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(<FP>) { 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 |