about summary refs log tree commit homepage
path: root/t/hl_mod.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-01-27 11:36:22 +0000
committerEric Wong <e@80x24.org>2019-01-27 11:43:34 +0000
commitfd8e62c1ed9b9f7eb851a263a9ada2cb8c182193 (patch)
tree2079d02e62e6b33b096574400971cfc923532324 /t/hl_mod.t
parent3998cdd1c94661687cee413b01b95422cf02c34a (diff)
downloadpublic-inbox-fd8e62c1ed9b9f7eb851a263a9ada2cb8c182193.tar.gz
hlmod: disable enclosing <pre> tag
We already have a <pre> tag in ViewVCS, and nesting <pre>
inside the pre-existing <pre> overrides the "white-space:pre"
we use to align line numbers.
Diffstat (limited to 't/hl_mod.t')
-rw-r--r--t/hl_mod.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/hl_mod.t b/t/hl_mod.t
index 62cc6248..80f88907 100644
--- a/t/hl_mod.t
+++ b/t/hl_mod.t
@@ -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;