aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/regress.pl
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2019-09-03 18:19:37 +0000
committerIngo Schwarze <schwarze@openbsd.org>2019-09-03 18:19:37 +0000
commitb1ad91c5a16d5524b4b2b04aa37194c728a02d6e (patch)
tree9711668b2f3efa1f48b4bed4429161da98ab6699 /regress/regress.pl
parenta9524ea55fa21a87e61e362ccc35d0e376eabec2 (diff)
downloadmandoc-b1ad91c5a16d5524b4b2b04aa37194c728a02d6e.tar.gz
mandoc-b1ad91c5a16d5524b4b2b04aa37194c728a02d6e.tar.zst
mandoc-b1ad91c5a16d5524b4b2b04aa37194c728a02d6e.zip
adapt to new <p> output logic (html.c rev. 1.260)
Diffstat (limited to 'regress/regress.pl')
-rwxr-xr-xregress/regress.pl9
1 files changed, 6 insertions, 3 deletions
diff --git a/regress/regress.pl b/regress/regress.pl
index 8ee2640d..d275a7ba 100755
--- a/regress/regress.pl
+++ b/regress/regress.pl
@@ -1,6 +1,6 @@
#!/usr/bin/env perl
#
-# $Id: regress.pl,v 1.11 2019/07/01 22:56:26 schwarze Exp $
+# $Id: regress.pl,v 1.12 2019/09/03 18:19:37 schwarze Exp $
#
# Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org>
#
@@ -86,8 +86,12 @@ sub syshtml ($@) {
if (!$state && s/.*<math class="eqn">//) {
$state = 'math';
next unless length;
- } elsif (/^BEGINTEST/) {
+ } elsif (/BEGINTEST/) {
$state = 'other';
+ next;
+ } elsif (/ENDTEST/) {
+ $state = 0;
+ next;
}
if ($state eq 'math') {
s/^ *//;
@@ -98,7 +102,6 @@ sub syshtml ($@) {
}
}
print $outfd "$_\n" if $state;
- $state = 0 if /^ENDTEST/;
}
close $outfd;
close $infd;