aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2021-05-16 22:28:27 +0000
committerIngo Schwarze <schwarze@openbsd.org>2021-05-16 22:28:27 +0000
commit3b3aaab0352b702195460124cd2c17cfd0ca5dbc (patch)
tree0a15dcda573ba4c7e3b3d5479d2d834c9a1c01d4
parentc518af53de9d0fdacf3606ccd60aee7bad4e7e89 (diff)
downloadmandoc-3b3aaab0352b702195460124cd2c17cfd0ca5dbc.tar.gz
mandoc-3b3aaab0352b702195460124cd2c17cfd0ca5dbc.tar.zst
mandoc-3b3aaab0352b702195460124cd2c17cfd0ca5dbc.zip
test font modifiers in the layout; related to tbl_html.c rev. 1.34
-rw-r--r--regress/tbl/layout/Makefile5
-rw-r--r--regress/tbl/layout/font.in16
-rw-r--r--regress/tbl/layout/font.out_ascii20
-rw-r--r--regress/tbl/layout/font.out_html10
4 files changed, 49 insertions, 2 deletions
diff --git a/regress/tbl/layout/Makefile b/regress/tbl/layout/Makefile
index 61fb6ad4..5fd5e65e 100644
--- a/regress/tbl/layout/Makefile
+++ b/regress/tbl/layout/Makefile
@@ -1,9 +1,10 @@
-# $OpenBSD: Makefile,v 1.6 2020/01/11 20:56:26 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/tbl/layout/font.in b/regress/tbl/layout/font.in
new file mode 100644
index 00000000..98d87f9e
--- /dev/null
+++ b/regress/tbl/layout/font.in
@@ -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/tbl/layout/font.out_ascii b/regress/tbl/layout/font.out_ascii
new file mode 100644
index 00000000..315ec460
--- /dev/null
+++ b/regress/tbl/layout/font.out_ascii
@@ -0,0 +1,20 @@
+TBL-LAYOUT-FONT(1) General Commands Manual TBL-LAYOUT-FONT(1)
+
+
+
+NNAAMMEE
+ tbl-layout-font - font modifiers in the table layout
+
+DDEESSCCRRIIPPTTIIOONN
+ BEGINTEST
+
+ +---------------+
+ |bboolldd roman |
+ +---------------+
+ |roman _i_t_a_l_i_c |
+ +---------------+
+ ENDTEST
+
+
+
+OpenBSD May 16, 2021 TBL-LAYOUT-FONT(1)
diff --git a/regress/tbl/layout/font.out_html b/regress/tbl/layout/font.out_html
new file mode 100644
index 00000000..1910e9a5
--- /dev/null
+++ b/regress/tbl/layout/font.out_html
@@ -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>