summaryrefslogtreecommitdiffstats
path: root/regress
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
commit846abaad420f1713db39bc28470b6de80953c692 (patch)
tree9ad43737444541e9cd14432b54207c166797922a /regress
parent1e7136c9c7a91b3c7254d1c4b5daf7159f2b8170 (diff)
downloadmandoc-846abaad420f1713db39bc28470b6de80953c692.tar.gz
adapt to new <p> output logic (html.c rev. 1.260)
Diffstat (limited to 'regress')
-rw-r--r--regress/char/space/zerowidth.out_html2
-rw-r--r--regress/char/unicode/ascii.out_html2
-rw-r--r--regress/char/unicode/invalid.out_html2
-rw-r--r--regress/char/unicode/latin1.out_html2
-rw-r--r--regress/char/unicode/latin1diff.out_html2
-rw-r--r--regress/char/unicode/named.out_html2
-rw-r--r--regress/char/unicode/namediff.out_html2
-rw-r--r--regress/char/unicode/nogroff.out_html2
-rw-r--r--regress/man/HP/literal.out_html2
-rw-r--r--regress/man/IP/literal.out_html6
-rw-r--r--regress/man/RS/literal.out_html10
-rw-r--r--regress/man/RS/paragraph.out_html2
-rw-r--r--regress/man/SH/paragraph.out_html4
-rw-r--r--regress/man/SS/paragraph.out_html4
-rw-r--r--regress/man/SY/literal.out_html10
-rw-r--r--regress/man/TP/literal.out_html2
-rw-r--r--regress/mdoc/Bd/nf.out_html4
-rw-r--r--regress/mdoc/Bd/paragraph.out_html2
-rw-r--r--regress/mdoc/Bf/paragraph.out_html2
-rw-r--r--regress/mdoc/D1/spacing.out_html2
-rw-r--r--regress/mdoc/Rs/paragraph.out_html10
-rw-r--r--regress/mdoc/Sh/paragraph.out_html4
-rwxr-xr-xregress/regress.pl7
-rw-r--r--regress/roff/esc/f.out_html2
-rw-r--r--regress/roff/ft/badargs.out_html14
-rw-r--r--regress/roff/sp/fill-man.out_html2
-rw-r--r--regress/roff/string/dotT.out_html2
27 files changed, 29 insertions, 78 deletions
diff --git a/regress/char/space/zerowidth.out_html b/regress/char/space/zerowidth.out_html
index f317aafd..afca2d17 100644
--- a/regress/char/space/zerowidth.out_html
+++ b/regress/char/space/zerowidth.out_html
@@ -1,6 +1,4 @@
-BEGINTEST
zero width space \&amp; between A and B: AB
hyphenation allowed \% between A and B: AB
half-narrow (1/12) space \^ between A and B: AB
narrow space (1/6) \| between A and B: AB
-ENDTEST
diff --git a/regress/char/unicode/ascii.out_html b/regress/char/unicode/ascii.out_html
index 7ebda578..264fa356 100644
--- a/regress/char/unicode/ascii.out_html
+++ b/regress/char/unicode/ascii.out_html
@@ -1,4 +1,3 @@
-BEGINTEST
&quot;&quot;&quot; QUOTATION MARK
### NUMBER SIGN
$$$ DOLLAR SIGN
@@ -19,4 +18,3 @@ ____ LOW LINE
|||| VERTICAL LINE
}}} RIGHT CURLY BRACKET
~~~~ TILDE
-ENDTEST
diff --git a/regress/char/unicode/invalid.out_html b/regress/char/unicode/invalid.out_html
index 0de972f1..f22176ed 100644
--- a/regress/char/unicode/invalid.out_html
+++ b/regress/char/unicode/invalid.out_html
@@ -1,8 +1,6 @@
-BEGINTEST
too short: &gt;.&lt;
just right: &gt;+&lt;
too long: &gt;..&lt;
too large: &gt;..&lt;
trailing garbage: &gt;&lt;
not unicode: &gt;_.&#x2191;.&#x21D1;&lt;
-ENDTEST
diff --git a/regress/char/unicode/latin1.out_html b/regress/char/unicode/latin1.out_html
index db54b987..a50dbf0f 100644
--- a/regress/char/unicode/latin1.out_html
+++ b/regress/char/unicode/latin1.out_html
@@ -1,4 +1,3 @@
-BEGINTEST
&#x00A1;&#x00A1; INVERTED EXCLAMATION MARK
&#x00A2;&#x00A2; CENT SIGN
&#x00A3;&#x00A3; POUND SIGN
@@ -93,4 +92,3 @@ BEGINTEST
&#x00FD;&#x00FD; LATIN SMALL LETTER Y WITH ACUTE
&#x00FE;&#x00FE; LATIN SMALL LETTER THORN
&#x00FF;&#x00FF; LATIN SMALL LETTER Y WITH DIAERESIS
-ENDTEST
diff --git a/regress/char/unicode/latin1diff.out_html b/regress/char/unicode/latin1diff.out_html
index 5f3b3b17..dea123b9 100644
--- a/regress/char/unicode/latin1diff.out_html
+++ b/regress/char/unicode/latin1diff.out_html
@@ -1,3 +1 @@
-BEGINTEST
&#x00AF;&#x00AF; MACRON
-ENDTEST
diff --git a/regress/char/unicode/named.out_html b/regress/char/unicode/named.out_html
index 5d77d840..22220902 100644
--- a/regress/char/unicode/named.out_html
+++ b/regress/char/unicode/named.out_html
@@ -1,4 +1,3 @@
-BEGINTEST
&#x0131;&#x0131; LATIN SMALL LETTER DOTLESS I
&#x0132;&#x0132; LATIN CAPITAL LIGATURE IJ
&#x0133;&#x0133; LATIN SMALL LIGATURE IJ
@@ -167,4 +166,3 @@ BEGINTEST
&#x2666;&#x2666; BLACK DIAMOND SUIT
&#x27E8;&#x27E8; MATHEMATICAL LEFT ANGLE BRACKET
&#x27E9;&#x27E9; MATHEMATICAL RIGHT ANGLE BRACKET
-ENDTEST
diff --git a/regress/char/unicode/namediff.out_html b/regress/char/unicode/namediff.out_html
index 4afee5ce..c2f2c3e6 100644
--- a/regress/char/unicode/namediff.out_html
+++ b/regress/char/unicode/namediff.out_html
@@ -1,4 +1,3 @@
-BEGINTEST
&#x203E;&#x203E; OVERLINE
&#x210F;&#x210F;&#x210F; PLANCK CONSTANT OVER TWO PI
&#x2195;&#x2195; UP DOWN ARROW
@@ -22,4 +21,3 @@ BEGINTEST
&#x23AB;&#x23AB; RIGHT CURLY BRACKET UPPER HOOK
&#x23AC;&#x23AC; RIGHT CURLY BRACKET MIDDLE PIECE
&#x23AD;&#x23AD; RIGHT CURLY BRACKET LOWER HOOK
-ENDTEST
diff --git a/regress/char/unicode/nogroff.out_html b/regress/char/unicode/nogroff.out_html
index a865d2d1..6a87860c 100644
--- a/regress/char/unicode/nogroff.out_html
+++ b/regress/char/unicode/nogroff.out_html
@@ -1,4 +1,3 @@
-BEGINTEST
&#xFFFD;&#xFFFD; &lt;control&gt; NULL
&#xFFFD;&#xFFFD; &lt;control&gt; START OF HEADING
&#xFFFD;&#xFFFD; &lt;control&gt; BELL
@@ -34,4 +33,3 @@ BEGINTEST
&#x10FFFD; &lt;Plane 16 Private Use, Last&gt;
&#x10FFFE; &lt;undefined&gt;
&#x10FFFF; &lt;undefined&gt;
-ENDTEST
diff --git a/regress/man/HP/literal.out_html b/regress/man/HP/literal.out_html
index d40ee9a5..08fb26b9 100644
--- a/regress/man/HP/literal.out_html
+++ b/regress/man/HP/literal.out_html
@@ -1,4 +1,3 @@
-BEGINTEST before hanged paragraph
<p class="Pp HP">tag indented text</p>
<p class="Pp">regular paragraph</p>
<pre>
@@ -17,4 +16,3 @@ paragraph
</pre>
regular text
<br/>
-ENDTEST
diff --git a/regress/man/IP/literal.out_html b/regress/man/IP/literal.out_html
index dce47df1..b61fc843 100644
--- a/regress/man/IP/literal.out_html
+++ b/regress/man/IP/literal.out_html
@@ -1,4 +1,3 @@
-BEGINTEST before indentation
<dl class="Bl-tag">
<dt>tag</dt>
<dd>indented regular text</dd>
@@ -27,7 +26,7 @@ regular text
<section class="Ss">
<h2 class="Ss" id="literal_into_indented_paragraph"><a class="permalink" href="#literal_into_indented_paragraph">literal
into indented paragraph</a></h2>
-regular text
+<p class="Pp">regular text</p>
<pre>
literal
text
@@ -47,7 +46,7 @@ text
<section class="Ss">
<h2 class="Ss" id="literal_out_of_indented_paragraph"><a class="permalink" href="#literal_out_of_indented_paragraph">literal
out of indented paragraph</a></h2>
-regular text
+<p class="Pp">regular text</p>
<dl class="Bl-tag">
<dt>tag</dt>
<dd>indented regular text
@@ -65,4 +64,3 @@ paragraph
</pre>
regular text
<br/>
-ENDTEST
diff --git a/regress/man/RS/literal.out_html b/regress/man/RS/literal.out_html
index 9475f407..7bd5431b 100644
--- a/regress/man/RS/literal.out_html
+++ b/regress/man/RS/literal.out_html
@@ -1,6 +1,5 @@
-BEGINTEST
-<br/>
-initial regular text
+ <br/>
+ initial regular text</p>
<pre>
literal text
before display
@@ -15,6 +14,5 @@ This is a very long line that would wrap if it weren't in literal context.
literal text
after display
</pre>
-final regular text
-<br/>
-ENDTEST
+<p class="Pp">final regular text
+ <br/>
diff --git a/regress/man/RS/paragraph.out_html b/regress/man/RS/paragraph.out_html
index 8b518698..24bd7c5f 100644
--- a/regress/man/RS/paragraph.out_html
+++ b/regress/man/RS/paragraph.out_html
@@ -1,8 +1,6 @@
-BEGINTEST before paragraph
<p class="Pp">regular paragraph</p>
<div class="Bd-indent">indented paragraph
<p class="Pp">nested paragraph</p>
</div>
regular text after display
<br/>
-ENDTEST
diff --git a/regress/man/SH/paragraph.out_html b/regress/man/SH/paragraph.out_html
index 6423855a..abe932b4 100644
--- a/regress/man/SH/paragraph.out_html
+++ b/regress/man/SH/paragraph.out_html
@@ -1,10 +1,8 @@
-BEGINTEST
</section>
<section class="Sh">
<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
-This text immediately follows a section header.
+<p class="Pp">This text immediately follows a section header.</p>
<p class="Pp">This is a paragraph.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="EXAMPLES"><a class="permalink" href="#EXAMPLES">EXAMPLES</a></h1>
-ENDTEST
diff --git a/regress/man/SS/paragraph.out_html b/regress/man/SS/paragraph.out_html
index fa385635..22591deb 100644
--- a/regress/man/SS/paragraph.out_html
+++ b/regress/man/SS/paragraph.out_html
@@ -1,11 +1,9 @@
-BEGINTEST
<section class="Ss">
<h2 class="Ss" id="First_subsection"><a class="permalink" href="#First_subsection">First
subsection</a></h2>
-This text immediately follows a subsection header.
+<p class="Pp">This text immediately follows a subsection header.</p>
<p class="Pp">This is a paragraph.</p>
</section>
<section class="Ss">
<h2 class="Ss" id="Second_subsection"><a class="permalink" href="#Second_subsection">Second
subsection</a></h2>
-ENDTEST
diff --git a/regress/man/SY/literal.out_html b/regress/man/SY/literal.out_html
index 5daf74ef..9b3e8486 100644
--- a/regress/man/SY/literal.out_html
+++ b/regress/man/SY/literal.out_html
@@ -1,6 +1,5 @@
-BEGINTEST
-<br/>
-initial regular text
+ <br/>
+ initial regular text</p>
<table class="Nm">
<tr>
<td><code class="Nm">command</code></td>
@@ -26,6 +25,5 @@ before display
literal text
after display
</pre>
-final regular text
-<br/>
-ENDTEST
+<p class="Pp">final regular text
+ <br/>
diff --git a/regress/man/TP/literal.out_html b/regress/man/TP/literal.out_html
index 14bfb834..7f5b1c1f 100644
--- a/regress/man/TP/literal.out_html
+++ b/regress/man/TP/literal.out_html
@@ -1,4 +1,3 @@
-BEGINTEST before indentation
<dl class="Bl-tag">
<dt>tag</dt>
<dd>regular indented text</dd>
@@ -24,4 +23,3 @@ paragraph
</pre>
regular text
<br/>
-ENDTEST
diff --git a/regress/mdoc/Bd/nf.out_html b/regress/mdoc/Bd/nf.out_html
index 31642e07..394eb7ed 100644
--- a/regress/mdoc/Bd/nf.out_html
+++ b/regress/mdoc/Bd/nf.out_html
@@ -1,9 +1,8 @@
-BEGINTEST initial text
<pre>
after .nf
request
</pre>
-after .fi request
+<p class="Pp">after .fi request</p>
<div class="Bd Pp">
<pre>
in unfilled
@@ -19,4 +18,3 @@ in filled block
</div>
after end of filled block
<br/>
-ENDTEST
diff --git a/regress/mdoc/Bd/paragraph.out_html b/regress/mdoc/Bd/paragraph.out_html
index c2c6993e..bec13a88 100644
--- a/regress/mdoc/Bd/paragraph.out_html
+++ b/regress/mdoc/Bd/paragraph.out_html
@@ -1,4 +1,3 @@
-BEGINTEST initial text
<p class="Pp">normal paragraph</p>
<div class="Bd Pp">filled display
<p class="Pp">paragraph in display</p>
@@ -16,4 +15,3 @@ paragraph
</div>
again back to normal
<br/>
-ENDTEST
diff --git a/regress/mdoc/Bf/paragraph.out_html b/regress/mdoc/Bf/paragraph.out_html
index e86b979a..cd22d567 100644
--- a/regress/mdoc/Bf/paragraph.out_html
+++ b/regress/mdoc/Bf/paragraph.out_html
@@ -1,6 +1,4 @@
-BEGINTEST
<p class="Pp">normal text</p>
<div class="Bf Li">literal text
<p class="Pp">literal paragraph</p>
</div>
-ENDTEST
diff --git a/regress/mdoc/D1/spacing.out_html b/regress/mdoc/D1/spacing.out_html
index b1a1d4da..3db40161 100644
--- a/regress/mdoc/D1/spacing.out_html
+++ b/regress/mdoc/D1/spacing.out_html
@@ -1,8 +1,6 @@
-BEGINTEST
<p class="Pp">preceding paragraph</p>
<div class="Bd Bd-indent">spacing in and around one-line displays</div>
empty display:
<div class="Bd Bd-indent"></div>
following text
<br/>
-ENDTEST
diff --git a/regress/mdoc/Rs/paragraph.out_html b/regress/mdoc/Rs/paragraph.out_html
index 251d0d0c..ba5fb63a 100644
--- a/regress/mdoc/Rs/paragraph.out_html
+++ b/regress/mdoc/Rs/paragraph.out_html
@@ -1,18 +1,16 @@
-BEGINTEST
-<br/>
-initial reference: <cite class="Rs"><span class="RsA">author name</span>,
- <i class="RsB">book title</i>.</cite>
+ <br/>
+ initial reference: <cite class="Rs"><span class="RsA">author name</span>,
+ <i class="RsB">book title</i>.</cite></p>
<p class="Pp">in a paragraph: <cite class="Rs"><span class="RsA">another
author</span>, <i class="RsB">another book</i>.</cite></p>
</section>
<section class="Sh">
<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
ALSO</a></h1>
-initial reference:
+<p class="Pp">initial reference:</p>
<p class="Pp"><cite class="Rs"><span class="RsA">author name</span>,
<i class="RsB">book title</i>.</cite></p>
<p class="Pp">in a paragraph:</p>
<p class="Pp"><cite class="Rs"><span class="RsA">another author</span>,
<i class="RsB">another book</i>.</cite></p>
<pre>
-ENDTEST
diff --git a/regress/mdoc/Sh/paragraph.out_html b/regress/mdoc/Sh/paragraph.out_html
index 3b5154de..82ede5be 100644
--- a/regress/mdoc/Sh/paragraph.out_html
+++ b/regress/mdoc/Sh/paragraph.out_html
@@ -1,11 +1,9 @@
-BEGINTEST
<p class="Pp">descriptive text</p>
<section class="Ss">
<h2 class="Ss" id="Subsection"><a class="permalink" href="#Subsection">Subsection</a></h2>
-initial subsection text
+<p class="Pp">initial subsection text</p>
<p class="Pp">subsection paragraph</p>
</section>
</section>
<section class="Sh">
<h1 class="Sh" id="EXAMPLES"><a class="permalink" href="#EXAMPLES">EXAMPLES</a></h1>
-ENDTEST
diff --git a/regress/regress.pl b/regress/regress.pl
index 6c8e5755..cc6f3806 100755
--- a/regress/regress.pl
+++ b/regress/regress.pl
@@ -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;
diff --git a/regress/roff/esc/f.out_html b/regress/roff/esc/f.out_html
index 332e0f00..887175f6 100644
--- a/regress/roff/esc/f.out_html
+++ b/regress/roff/esc/f.out_html
@@ -1,6 +1,4 @@
-BEGINTEST
numbers: <b><i>bolditalic</i></b><b>bold</b><i>italic</i>roman
letters: <b>bold</b><i>italic</i><b>back</b><b><i>bolditalic</i></b>roman
multiletter: <b>bold</b>empty<i>italic</i>back<b><i>bolditalic</i></b>roman
typewriter: <span class="Li">roman</span><b>bold</b><span class="Li">roman</span><i>italic</i>roman
-ENDTEST
diff --git a/regress/roff/ft/badargs.out_html b/regress/roff/ft/badargs.out_html
index 0fa4a816..a332e3a2 100644
--- a/regress/roff/ft/badargs.out_html
+++ b/regress/roff/ft/badargs.out_html
@@ -1,8 +1,6 @@
-BEGINTEST
-<br/>
-default font <i>italic</i> <b><i>bold italic</i></b>
- <span class="Li">typeqriter</span> <span class="Li">roman</span> <b>bold</b>
- <i>italic</i> <b>bold</b> <b>still bold</b> <i>italic</i> <i>back to bold</i>
- <i>back to italic</i>
-<br/>
-ENDTEST
+ <br/>
+ default font <i>italic</i> <b><i>bold italic</i></b>
+ <span class="Li">typeqriter</span> <span class="Li">roman</span> <b>bold</b>
+ <i>italic</i> <b>bold</b> <b>still bold</b> <i>italic</i> <i>back to
+ bold</i> <i>back to italic</i>
+ <br/>
diff --git a/regress/roff/sp/fill-man.out_html b/regress/roff/sp/fill-man.out_html
index 3fcfa2a6..054b6359 100644
--- a/regress/roff/sp/fill-man.out_html
+++ b/regress/roff/sp/fill-man.out_html
@@ -1,4 +1,3 @@
-BEGINTEST in fill mode:
<p class="Pp">switch to no-fill mode:</p>
<pre>
in no-fill mode:
@@ -6,4 +5,3 @@ in no-fill mode:
back to
fill mode:
</pre>
-ENDTEST
diff --git a/regress/roff/string/dotT.out_html b/regress/roff/string/dotT.out_html
index 8143fd88..0a019b20 100644
--- a/regress/roff/string/dotT.out_html
+++ b/regress/roff/string/dotT.out_html
@@ -1,5 +1,3 @@
-BEGINTEST
<p class="Pp">We are using the html device.</p>
<p class="Pp">The device name can be overridden.</p>
<pre>
-ENDTEST