test font modifiers in the layout; related to tbl_html.c rev. 1.29
authorschwarze <schwarze@openbsd.org>
Sun, 16 May 2021 22:23:57 +0000 (22:23 +0000)
committerschwarze <schwarze@openbsd.org>
Sun, 16 May 2021 22:23:57 +0000 (22:23 +0000)
regress/usr.bin/mandoc/tbl/layout/Makefile
regress/usr.bin/mandoc/tbl/layout/font.in [new file with mode: 0644]
regress/usr.bin/mandoc/tbl/layout/font.out_ascii [new file with mode: 0644]
regress/usr.bin/mandoc/tbl/layout/font.out_html [new file with mode: 0644]

index b49c498..5fd5e65 100644 (file)
@@ -1,9 +1,10 @@
-# $OpenBSD: Makefile,v 1.7 2020/09/01 18:24:10 schwarze Exp $
+# $OpenBSD: Makefile,v 1.8 2021/05/16 22:23:57 schwarze Exp $
 
-REGRESS_TARGETS         = badspan center complex empty emptycol emptyline
+REGRESS_TARGETS         = badspan center complex empty emptycol emptyline font
 REGRESS_TARGETS        += lines lines-nogroff numbers
 REGRESS_TARGETS        += shortlines spacing spacing-nogroff span
 LINT_TARGETS    = badspan complex empty spacing-nogroff
+HTML_TARGETS    = font
 
 # groff-1.22.4 defects:
 # - When the layout is completely empty,
diff --git a/regress/usr.bin/mandoc/tbl/layout/font.in b/regress/usr.bin/mandoc/tbl/layout/font.in
new file mode 100644 (file)
index 0000000..98d87f9
--- /dev/null
@@ -0,0 +1,16 @@
+.\" $OpenBSD: font.in,v 1.1 2021/05/16 22:23:57 schwarze Exp $
+.TH TBL-LAYOUT-FONT 1 "May 16, 2021"
+.SH NAME
+tbl-layout-font \- font modifiers in the table layout
+.SH DESCRIPTION
+BEGINTEST
+.TS
+box tab(:);
+lb r
+l ri.
+bold:roman
+_
+roman:italic
+.TE
+.PP
+ENDTEST
diff --git a/regress/usr.bin/mandoc/tbl/layout/font.out_ascii b/regress/usr.bin/mandoc/tbl/layout/font.out_ascii
new file mode 100644 (file)
index 0000000..315ec46
--- /dev/null
@@ -0,0 +1,20 @@
+TBL-LAYOUT-FONT(1)          General Commands Manual         TBL-LAYOUT-FONT(1)
+
+
+
+N\bNA\bAM\bME\bE
+       tbl-layout-font - font modifiers in the table layout
+
+D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
+       BEGINTEST
+
+       +---------------+
+       |b\bbo\bol\bld\bd     roman |
+       +---------------+
+       |roman   _\bi_\bt_\ba_\bl_\bi_\bc |
+       +---------------+
+       ENDTEST
+
+
+
+OpenBSD                          May 16, 2021               TBL-LAYOUT-FONT(1)
diff --git a/regress/usr.bin/mandoc/tbl/layout/font.out_html b/regress/usr.bin/mandoc/tbl/layout/font.out_html
new file mode 100644 (file)
index 0000000..1910e9a
--- /dev/null
@@ -0,0 +1,10 @@
+<table class="tbl" style="border-style: solid;">
+  <tr style="border-bottom-style: solid;">
+    <td><b>bold</b></td>
+    <td style="text-align: right;">roman</td>
+  </tr>
+  <tr>
+    <td>roman</td>
+    <td style="text-align: right;"><i>italic</i></td>
+  </tr>
+</table>