diff options
author | Eric Wong <e@80x24.org> | 2019-04-19 08:09:31 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-04-19 08:12:55 +0000 |
commit | d88d992927467a9d5bc2733cc01e3dda4c5de234 (patch) | |
tree | e49a6ea7dfa4078766cd6038939789e420fa9531 /t | |
parent | e55bef366b87ecbcb66c93669f41876afc1d2446 (diff) | |
download | public-inbox-d88d992927467a9d5bc2733cc01e3dda4c5de234.tar.gz |
t/hl_mod: workaround w3m not handling '
This fixes a test failure on my Debian buster system. Bug report filed for w3m to handle "'": https://bugs.debian.org/927409 and for "highlight" to favor "'" in case other browsers fail: https://bugs.debian.org/927410
Diffstat (limited to 't')
-rw-r--r-- | t/hl_mod.t | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -30,6 +30,10 @@ my $orig = $str; require File::Temp; my $cmd = [ qw(w3m -T text/html -dump -config /dev/null) ]; my ($out, $err) = ('', ''); + + # workaround https://bugs.debian.org/927409 + $$ref =~ s/'/'/sg; + IPC::Run::run($cmd, \('<pre>'.$$ref.'</pre>'), \$out, \$err); # expand tabs and normalize whitespace, # w3m doesn't preserve tabs |