diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2012-06-02 20:07:10 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2012-06-02 20:07:10 +0000 |
commit | 0410f2b4b627b157e42002c1b1552d982a1f4772 (patch) | |
tree | a9e89682067c146391192c38ba808954dc915100 /regress/usr.bin/mandoc/man | |
parent | 938717f7d7c31fc3d29c88cc583d7a0d6e0267a2 (diff) |
Minimal implementation of .EX and .EE for GNU compatibility.
Do not use this, it is not portable and only defined in esr's man-ext.
For example, sox(1) wants these macros.
Diffstat (limited to 'regress/usr.bin/mandoc/man')
-rw-r--r-- | regress/usr.bin/mandoc/man/EX/Makefile | 5 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/man/EX/args.in | 12 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/man/EX/args.out_ascii | 16 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/man/EX/nested.in | 18 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/man/EX/nested.out_ascii | 19 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/man/EX/spacing.in | 35 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/man/EX/spacing.out_ascii | 27 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/man/Makefile | 4 |
8 files changed, 134 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/man/EX/Makefile b/regress/usr.bin/mandoc/man/EX/Makefile new file mode 100644 index 00000000000..8837c524e41 --- /dev/null +++ b/regress/usr.bin/mandoc/man/EX/Makefile @@ -0,0 +1,5 @@ +# $OpenBSD: Makefile,v 1.1 2012/06/02 20:07:09 schwarze Exp $ + +REGRESS_TARGETS=spacing nested args + +.include <bsd.regress.mk> diff --git a/regress/usr.bin/mandoc/man/EX/args.in b/regress/usr.bin/mandoc/man/EX/args.in new file mode 100644 index 00000000000..ac88a38ab8d --- /dev/null +++ b/regress/usr.bin/mandoc/man/EX/args.in @@ -0,0 +1,12 @@ +.TH EX-ARGS 1 "June 3, 2012" OpenBSD +.SH NAME +EX-args \- example macro with arguments +.SH DESCRIPTION +regular +text +.EX arg1 arg2 arg3 +literal +text +.EE arg1 arg2 arg3 +regular +text diff --git a/regress/usr.bin/mandoc/man/EX/args.out_ascii b/regress/usr.bin/mandoc/man/EX/args.out_ascii new file mode 100644 index 00000000000..4927655ed1d --- /dev/null +++ b/regress/usr.bin/mandoc/man/EX/args.out_ascii @@ -0,0 +1,16 @@ +EX-ARGS(1) OpenBSD Reference Manual EX-ARGS(1) + + + +NNAAMMEE + EX-args - example macro with arguments + +DDEESSCCRRIIPPTTIIOONN + regular text + literal + text + regular text + + + +OpenBSD June 3, 2012 EX-ARGS(1) diff --git a/regress/usr.bin/mandoc/man/EX/nested.in b/regress/usr.bin/mandoc/man/EX/nested.in new file mode 100644 index 00000000000..8ecf0ca2a59 --- /dev/null +++ b/regress/usr.bin/mandoc/man/EX/nested.in @@ -0,0 +1,18 @@ +.TH EX-NESTED 1 "June 3, 2012" OpenBSD +.SH NAME +EX-nested \- nested example macros +.SH DESCRIPTION +regular +text +.EX +outer +example +.EX +inner +example +.EE +outer +example +.EE +regular +text diff --git a/regress/usr.bin/mandoc/man/EX/nested.out_ascii b/regress/usr.bin/mandoc/man/EX/nested.out_ascii new file mode 100644 index 00000000000..2c7c8449366 --- /dev/null +++ b/regress/usr.bin/mandoc/man/EX/nested.out_ascii @@ -0,0 +1,19 @@ +EX-NESTED(1) OpenBSD Reference Manual EX-NESTED(1) + + + +NNAAMMEE + EX-nested - nested example macros + +DDEESSCCRRIIPPTTIIOONN + regular text + outer + example + inner + example + outer example + regular text + + + +OpenBSD June 3, 2012 EX-NESTED(1) diff --git a/regress/usr.bin/mandoc/man/EX/spacing.in b/regress/usr.bin/mandoc/man/EX/spacing.in new file mode 100644 index 00000000000..aa307d054f1 --- /dev/null +++ b/regress/usr.bin/mandoc/man/EX/spacing.in @@ -0,0 +1,35 @@ +.TH EX-SPACING 1 "June 3, 2012" OpenBSD +.SH NAME +EX-spacing \- spacing around the example macro +.SH DESCRIPTION +regular +text +.EX +example +text +.EE +regular +text +.nf +literal +text +.EX +example +text +.EE +regular +text +.PP +.EX +after PP, before nf +.EE +.nf +.EX +after nf, before fi +.EE +.fi +after fi, before PP +.EE +.PP +regular +text diff --git a/regress/usr.bin/mandoc/man/EX/spacing.out_ascii b/regress/usr.bin/mandoc/man/EX/spacing.out_ascii new file mode 100644 index 00000000000..23f655b8388 --- /dev/null +++ b/regress/usr.bin/mandoc/man/EX/spacing.out_ascii @@ -0,0 +1,27 @@ +EX-SPACING(1) OpenBSD Reference Manual EX-SPACING(1) + + + +NNAAMMEE + EX-spacing - spacing around the example macro + +DDEESSCCRRIIPPTTIIOONN + regular text + example + text + regular text + literal + text + example + text + regular text + + after PP, before nf + after nf, before fi + after fi, before PP + + regular text + + + +OpenBSD June 3, 2012 EX-SPACING(1) diff --git a/regress/usr.bin/mandoc/man/Makefile b/regress/usr.bin/mandoc/man/Makefile index eb997273270..a18574eaad3 100644 --- a/regress/usr.bin/mandoc/man/Makefile +++ b/regress/usr.bin/mandoc/man/Makefile @@ -1,6 +1,6 @@ -# $OpenBSD: Makefile,v 1.6 2011/11/17 16:28:45 schwarze Exp $ +# $OpenBSD: Makefile,v 1.7 2012/06/02 20:07:09 schwarze Exp $ -SUBDIR= nf BI IP PP TH TP +SUBDIR= nf BI EX IP PP TH TP ascii groff groff-clean obj-clean tman: _SUBDIRUSE |