diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2012-11-18 00:23:57 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2012-11-18 00:23:57 +0000 |
commit | d8af2f9d531b05a23af8942001171c240f9dd1e8 (patch) | |
tree | a1eb95586a27070020edb20758d850d8d58dd20f /regress | |
parent | 5c831a2c95d5f842056417aa34a5a8610f302826 (diff) |
Test paragraph distance (.PD) implementation;
related to man_term.c rev. 1.88, man_validate.c rev. 1.56.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/mandoc/man/Makefile | 4 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/man/PD/Makefile | 5 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/man/PD/args.in | 23 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/man/PD/args.out_ascii | 24 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/man/PD/spacing.in | 62 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/man/PD/spacing.out_ascii | 70 |
6 files changed, 186 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/man/Makefile b/regress/usr.bin/mandoc/man/Makefile index 1c0e8974615..a591c58dc55 100644 --- a/regress/usr.bin/mandoc/man/Makefile +++ b/regress/usr.bin/mandoc/man/Makefile @@ -1,6 +1,6 @@ -# $OpenBSD: Makefile,v 1.11 2012/07/18 16:55:54 schwarze Exp $ +# $OpenBSD: Makefile,v 1.12 2012/11/18 00:23:56 schwarze Exp $ -SUBDIR = BI EX HP IP PP RS TH TP TS nf blank +SUBDIR = BI EX HP IP PD PP RS TH TP TS nf blank ascii groff groff-clean obj-clean tman: _SUBDIRUSE diff --git a/regress/usr.bin/mandoc/man/PD/Makefile b/regress/usr.bin/mandoc/man/PD/Makefile new file mode 100644 index 00000000000..fddeafbf745 --- /dev/null +++ b/regress/usr.bin/mandoc/man/PD/Makefile @@ -0,0 +1,5 @@ +# $OpenBSD: Makefile,v 1.1 2012/11/18 00:23:56 schwarze Exp $ + +REGRESS_TARGETS = spacing args + +.include <bsd.regress.mk> diff --git a/regress/usr.bin/mandoc/man/PD/args.in b/regress/usr.bin/mandoc/man/PD/args.in new file mode 100644 index 00000000000..9fb166c87ea --- /dev/null +++ b/regress/usr.bin/mandoc/man/PD/args.in @@ -0,0 +1,23 @@ +.TH PD-ARGS 1 "July 29, 2012" OpenBSD +.SH NAME +PD-args \- unusual arguments to the PD macro +.SH DESCRIPTION +initial text +.PP +default spacing +.PD 2 +.PP +argument(2) +.PD +.PP +no argument at all +.PD 2v +.PP +argument(2v) +.\" also test (2cm) +.\" .PD xxx +.\" .PP +.\" argument(xxx) +.PD 0 zzz +.PP +excessive argument diff --git a/regress/usr.bin/mandoc/man/PD/args.out_ascii b/regress/usr.bin/mandoc/man/PD/args.out_ascii new file mode 100644 index 00000000000..1340d89b44f --- /dev/null +++ b/regress/usr.bin/mandoc/man/PD/args.out_ascii @@ -0,0 +1,24 @@ +PD-ARGS(1) OpenBSD Reference Manual PD-ARGS(1) + + + +NNAAMMEE + PD-args - unusual arguments to the PD macro + +DDEESSCCRRIIPPTTIIOONN + initial text + + default spacing + + + argument(2) + + no argument at all + + + argument(2v) + excessive argument + + + +OpenBSD July 29, 2012 PD-ARGS(1) diff --git a/regress/usr.bin/mandoc/man/PD/spacing.in b/regress/usr.bin/mandoc/man/PD/spacing.in new file mode 100644 index 00000000000..9b324149ea9 --- /dev/null +++ b/regress/usr.bin/mandoc/man/PD/spacing.in @@ -0,0 +1,62 @@ +.TH PD-SPACING 1 "July 28, 2012" OpenBSD +.SH NAME +PD-spacing \- effect of the PD macro on vertical spacing +.SH DESCRIPTION +initial text +.PP +paragraph +.HP +hanged +paragraph +.IP indented +paragraph +.TP +tagged +paragraph +.SS subsection +subsection text +.PD 2 +.SH DOUBLE SPACING +initial text +.PP +paragraph +.HP +hanged +paragraph +.IP indented +paragraph +.TP +tagged +paragraph +.SS subsection +subsection text +.PD 0 +.SH NO SPACING +initial text +.PP +paragraph +.HP +hanged +paragraph +.IP indented +paragraph +.TP +tagged +paragraph +.SS subsection +subsection text +.PD 1 +.SH NORMAL SPACING +initial text +.PP +paragraph +.HP +hanged +paragraph +.IP indented +paragraph +.TP +tagged +paragraph +.SS subsection +subsection text diff --git a/regress/usr.bin/mandoc/man/PD/spacing.out_ascii b/regress/usr.bin/mandoc/man/PD/spacing.out_ascii new file mode 100644 index 00000000000..16b2b445d9f --- /dev/null +++ b/regress/usr.bin/mandoc/man/PD/spacing.out_ascii @@ -0,0 +1,70 @@ +PD-SPACING(1) OpenBSD Reference Manual PD-SPACING(1) + + + +NNAAMMEE + PD-spacing - effect of the PD macro on vertical spacing + +DDEESSCCRRIIPPTTIIOONN + initial text + + paragraph + + hanged paragraph + + indented + paragraph + + tagged paragraph + + ssuubbsseeccttiioonn + subsection text + + +DDOOUUBBLLEE SSPPAACCIINNGG + initial text + + + paragraph + + + hanged paragraph + + + indented + paragraph + + + tagged paragraph + + + ssuubbsseeccttiioonn + subsection text +NNOO SSPPAACCIINNGG + initial text + paragraph + hanged paragraph + indented + paragraph + tagged paragraph + ssuubbsseeccttiioonn + subsection text + +NNOORRMMAALL SSPPAACCIINNGG + initial text + + paragraph + + hanged paragraph + + indented + paragraph + + tagged paragraph + + ssuubbsseeccttiioonn + subsection text + + + +OpenBSD July 28, 2012 PD-SPACING(1) |