aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/man/TP/macrotag.in
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2020-09-09 17:01:10 +0000
committerIngo Schwarze <schwarze@openbsd.org>2020-09-09 17:01:10 +0000
commit6d805c41a1ebaced20ab413c14db4fa70c044f2c (patch)
treef813902674ab2ec8945487c148c519880debf090 /regress/man/TP/macrotag.in
parentcc64a9f0b63e16d12edd76ca35a7e99aa3519fc7 (diff)
downloadmandoc-6d805c41a1ebaced20ab413c14db4fa70c044f2c.tar.gz
mandoc-6d805c41a1ebaced20ab413c14db4fa70c044f2c.zip
Element next-line scopes can nest. Consequently, even when closing
one element next-line scope, the MAN_ELINE flag must not yet be cleared if the parent macro is another element macro having next-line scope, or an assertion failure is caused if all this is wrapped in another macro that has block next-line scope, for example .TP. Bug found in an afl run performed by Jan Schreiber <jes at posteo dot de>.
Diffstat (limited to 'regress/man/TP/macrotag.in')
-rw-r--r--regress/man/TP/macrotag.in18
1 files changed, 15 insertions, 3 deletions
diff --git a/regress/man/TP/macrotag.in b/regress/man/TP/macrotag.in
index ec214f41..4f6d8029 100644
--- a/regress/man/TP/macrotag.in
+++ b/regress/man/TP/macrotag.in
@@ -1,7 +1,7 @@
-.\" $OpenBSD: macrotag.in,v 1.3 2017/07/04 14:53:24 schwarze Exp $
-.TH TP-MACROTAG 1 "September 20, 2011"
+.\" $OpenBSD: macrotag.in,v 1.4 2020/09/09 16:57:05 schwarze Exp $
+.TH TP-MACROTAG 1 "September 9, 2020"
.SH NAME
-TP-macrotag \- macro in the head of a tagged paragraph
+TP-macrotag \- macros in the head of tagged paragraphs
.SH DESCRIPTION
regular
text
@@ -9,6 +9,18 @@ text
.B longindent
indented
text
+.TP
+.B
+.I
+next-line
+indented
+text
+.TP
+.B
+.SM
+bold small
+indented
+text
.PP
regular
text