]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/hl_mod.t
hlmod: disable enclosing <pre> tag
[public-inbox.git] / t / hl_mod.t
index 62cc62488f51479c401fda9c76103857f57fd5c0..80f88907e4ed577f74ed3e95d5a281cdd84c6d2f 100644 (file)
@@ -27,7 +27,7 @@ my $orig = $str;
                require File::Temp;
                my $cmd = [ qw(w3m -T text/html -dump -config /dev/null) ];
                my ($out, $err) = ('', '');
-               IPC::Run::run($cmd, $ref, \$out, \$err);
+               IPC::Run::run($cmd, \('<pre>'.$$ref.'</pre>'), \$out, \$err);
                # expand tabs and normalize whitespace,
                # w3m doesn't preserve tabs
                $orig =~ s/\t/        /gs;