summaryrefslogtreecommitdiffstats
path: root/regress
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
commitb2f8ea106cefcd6068453195e6df664cbb20d8b4 (patch)
treee52cbbff1f7afccb1d8f60d48db310a50ed972c6 /regress
parenta7aea729f48f4aaec131fc08bf37f6ef245cac0d (diff)
downloadmandoc-b2f8ea106cefcd6068453195e6df664cbb20d8b4.tar.gz
test font modifiers in the layout; related to tbl_html.c rev. 1.34
Diffstat (limited to 'regress')
-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>