summaryrefslogtreecommitdiffstats
path: root/regress
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2022-04-27 17:11:24 +0000
committerIngo Schwarze <schwarze@openbsd.org>2022-04-27 17:11:24 +0000
commitb4c6ee8b16f890a5c4514c24d3fa9ee27cb0efe0 (patch)
tree5e73f4b1108b8d95fd044fa7f8591f1981205145 /regress
parent5ca3efa4235c119815d10da34b9b55a9b829c5e0 (diff)
downloadmandoc-b4c6ee8b16f890a5c4514c24d3fa9ee27cb0efe0.tar.gz
The .AT, .DT, and .UC macros are allowed inside next-line scope
and never produce output at the place of their invocation. Minibugs found while investigating unrelated afl(1) reports from tb@.
Diffstat (limited to 'regress')
-rw-r--r--regress/man/AT/Makefile5
-rw-r--r--regress/man/AT/basic.in10
-rw-r--r--regress/man/AT/basic.out_ascii9
-rw-r--r--regress/man/DT/Makefile5
-rw-r--r--regress/man/DT/basic.in22
-rw-r--r--regress/man/DT/basic.out_ascii21
-rw-r--r--regress/man/Makefile4
-rw-r--r--regress/man/UC/Makefile5
-rw-r--r--regress/man/UC/basic.in10
-rw-r--r--regress/man/UC/basic.out_ascii9
10 files changed, 98 insertions, 2 deletions
diff --git a/regress/man/AT/Makefile b/regress/man/AT/Makefile
new file mode 100644
index 00000000..44cf0519
--- /dev/null
+++ b/regress/man/AT/Makefile
@@ -0,0 +1,5 @@
+# $OpenBSD: Makefile,v 1.1 2022/04/27 17:04:15 schwarze Exp $
+
+REGRESS_TARGETS = basic
+
+.include <bsd.regress.mk>
diff --git a/regress/man/AT/basic.in b/regress/man/AT/basic.in
new file mode 100644
index 00000000..35eb2375
--- /dev/null
+++ b/regress/man/AT/basic.in
@@ -0,0 +1,10 @@
+.\" $OpenBSD: basic.in,v 1.1 2022/04/27 17:04:15 schwarze Exp $
+.TH AT-BASIC 1 "April 27, 2022"
+.SH NAME
+AT-basic \- the AT&T footer macro
+.SH DESCRIPTION
+initial text
+.B
+.AT
+bold text
+final text
diff --git a/regress/man/AT/basic.out_ascii b/regress/man/AT/basic.out_ascii
new file mode 100644
index 00000000..962c9f88
--- /dev/null
+++ b/regress/man/AT/basic.out_ascii
@@ -0,0 +1,9 @@
+AT-BASIC(1) General Commands Manual AT-BASIC(1)
+
+NNAAMMEE
+ AT-basic - the AT&T footer macro
+
+DDEESSCCRRIIPPTTIIOONN
+ initial text bboolldd tteexxtt final text
+
+7th Edition April 27, 2022 AT-BASIC(1)
diff --git a/regress/man/DT/Makefile b/regress/man/DT/Makefile
new file mode 100644
index 00000000..44cf0519
--- /dev/null
+++ b/regress/man/DT/Makefile
@@ -0,0 +1,5 @@
+# $OpenBSD: Makefile,v 1.1 2022/04/27 17:04:15 schwarze Exp $
+
+REGRESS_TARGETS = basic
+
+.include <bsd.regress.mk>
diff --git a/regress/man/DT/basic.in b/regress/man/DT/basic.in
new file mode 100644
index 00000000..8902e594
--- /dev/null
+++ b/regress/man/DT/basic.in
@@ -0,0 +1,22 @@
+.\" $OpenBSD: basic.in,v 1.1 2022/04/27 17:04:15 schwarze Exp $
+.TH DT-BASIC 1 "April 27, 2022"
+.SH NAME
+DT-basic \- restore the default tabulator positions
+.SH DESCRIPTION
+.nf
+Default tabs are every five columns:
+1234 1234 1234 1234 1234
+one two three four
+.PP
+Custom tabs: column 6, then every 8 columns:
+12345 1234567 1234567 1234567
+.ta 6n T 8n
+one two three four
+.PP
+.B
+.DT
+bold text
+.PP
+Back to the default:
+1234 1234 1234 1234 1234
+one two three four
diff --git a/regress/man/DT/basic.out_ascii b/regress/man/DT/basic.out_ascii
new file mode 100644
index 00000000..8ccbc685
--- /dev/null
+++ b/regress/man/DT/basic.out_ascii
@@ -0,0 +1,21 @@
+DT-BASIC(1) General Commands Manual DT-BASIC(1)
+
+NNAAMMEE
+ DT-basic - restore the default tabulator positions
+
+DDEESSCCRRIIPPTTIIOONN
+ Default tabs are every five columns:
+ 1234 1234 1234 1234 1234
+ one two three four
+
+ Custom tabs: column 6, then every 8 columns:
+ 12345 1234567 1234567 1234567
+ one two three four
+
+ bboolldd tteexxtt
+
+ Back to the default:
+ 1234 1234 1234 1234 1234
+ one two three four
+
+OpenBSD April 27, 2022 DT-BASIC(1)
diff --git a/regress/man/Makefile b/regress/man/Makefile
index 23d6e04b..17a939b2 100644
--- a/regress/man/Makefile
+++ b/regress/man/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.19 2019/01/05 21:13:55 schwarze Exp $
+# $OpenBSD: Makefile,v 1.20 2022/04/27 17:04:15 schwarze Exp $
-SUBDIR = B BI EX HP IP MT OP PD PP RS SH SS SY TH TP TS UR nf blank
+SUBDIR = AT B BI DT EX HP IP MT OP PD PP RS SH SS SY TH TP TS UC UR nf blank
.include "../Makefile.sub"
.include <bsd.subdir.mk>
diff --git a/regress/man/UC/Makefile b/regress/man/UC/Makefile
new file mode 100644
index 00000000..44cf0519
--- /dev/null
+++ b/regress/man/UC/Makefile
@@ -0,0 +1,5 @@
+# $OpenBSD: Makefile,v 1.1 2022/04/27 17:04:15 schwarze Exp $
+
+REGRESS_TARGETS = basic
+
+.include <bsd.regress.mk>
diff --git a/regress/man/UC/basic.in b/regress/man/UC/basic.in
new file mode 100644
index 00000000..f6f71be0
--- /dev/null
+++ b/regress/man/UC/basic.in
@@ -0,0 +1,10 @@
+.\" $OpenBSD: basic.in,v 1.1 2022/04/27 17:04:15 schwarze Exp $
+.TH UC-BASIC 1 "April 27, 2022"
+.SH NAME
+UC-basic \- the University of California footer macro
+.SH DESCRIPTION
+initial text
+.B
+.UC
+bold text
+final text
diff --git a/regress/man/UC/basic.out_ascii b/regress/man/UC/basic.out_ascii
new file mode 100644
index 00000000..fa29e19d
--- /dev/null
+++ b/regress/man/UC/basic.out_ascii
@@ -0,0 +1,9 @@
+UC-BASIC(1) General Commands Manual UC-BASIC(1)
+
+NNAAMMEE
+ UC-basic - the University of California footer macro
+
+DDEESSCCRRIIPPTTIIOONN
+ initial text bboolldd tteexxtt final text
+
+3rd Berkeley Distribution April 27, 2022 UC-BASIC(1)