Check that .In is callable and parsed.
authorschwarze <schwarze@openbsd.org>
Sat, 21 Sep 2024 11:56:36 +0000 (11:56 +0000)
committerschwarze <schwarze@openbsd.org>
Sat, 21 Sep 2024 11:56:36 +0000 (11:56 +0000)
Triggered by a documentation patch from Evan Silberman <evan at jklol dot net>.

I'm not testing yet whether the same applies in the SYNOPSIS section
because there are multiple parsing and formatting differences with groff
in that section.

regress/usr.bin/mandoc/mdoc/In/Makefile
regress/usr.bin/mandoc/mdoc/In/parse.in [new file with mode: 0644]
regress/usr.bin/mandoc/mdoc/In/parse.out_ascii [new file with mode: 0644]
regress/usr.bin/mandoc/mdoc/In/parse.out_markdown [new file with mode: 0644]

index 3bb3b79..9148e5f 100644 (file)
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.9 2017/03/08 22:53:35 schwarze Exp $
+# $OpenBSD: Makefile,v 1.10 2024/09/21 11:56:36 schwarze Exp $
 
-REGRESS_TARGETS         = break eos font noarg
+REGRESS_TARGETS         = break eos font noarg parse
 LINT_TARGETS    = noarg
 
 .include <bsd.regress.mk>
diff --git a/regress/usr.bin/mandoc/mdoc/In/parse.in b/regress/usr.bin/mandoc/mdoc/In/parse.in
new file mode 100644 (file)
index 0000000..79473a2
--- /dev/null
@@ -0,0 +1,13 @@
+.\" $OpenBSD: parse.in,v 1.1 2024/09/21 11:56:36 schwarze Exp $
+.Dd $Mdocdate: September 21 2024 $
+.Dt IN-PARSE 2
+.Os
+.Sh NAME
+.Nm In-parse
+.Nd parsing of include file macros
+.Sh DESCRIPTION
+first line
+.Sy parent In arg1 arg2 Sy child
+middle line
+.In ( arg )
+last line
diff --git a/regress/usr.bin/mandoc/mdoc/In/parse.out_ascii b/regress/usr.bin/mandoc/mdoc/In/parse.out_ascii
new file mode 100644 (file)
index 0000000..ed05775
--- /dev/null
@@ -0,0 +1,9 @@
+IN-PARSE(2)                   System Calls Manual                  IN-PARSE(2)
+
+N\bNA\bAM\bME\bE
+     I\bIn\bn-\b-p\bpa\bar\brs\bse\be - parsing of include file macros
+
+D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
+     first line p\bpa\bar\bre\ben\bnt\bt <_\ba_\br_\bg_\b1> arg2 c\bch\bhi\bil\bld\bd middle line (<_\ba_\br_\bg>) last line
+
+OpenBSD                       September 21, 2024                       OpenBSD
diff --git a/regress/usr.bin/mandoc/mdoc/In/parse.out_markdown b/regress/usr.bin/mandoc/mdoc/In/parse.out_markdown
new file mode 100644 (file)
index 0000000..d4ff689
--- /dev/null
@@ -0,0 +1,15 @@
+IN-PARSE(2) - System Calls Manual
+
+# NAME
+
+**In-parse** - parsing of include file macros
+
+# DESCRIPTION
+
+first line
+**parent** &lt;*arg1*> arg2 **child**
+middle line
+(&lt;*arg*>)
+last line
+
+OpenBSD - September 21, 2024