diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-08 03:02:13 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-08 03:02:13 +0000 |
commit | 4c0770c1ecd159a77561d8e0364385f4bb758650 (patch) | |
tree | 5c2d5820b093c1c08b6047ff110e9b055083a5ea /regress/mdoc/blank | |
parent | d16e7f2cf346476e177ce672851b0b957aebbe5d (diff) | |
download | mandoc-4c0770c1ecd159a77561d8e0364385f4bb758650.tar.gz |
Finally port the OpenBSD regression suite.
Both kristaps@ and wiz@ repeated asked for this,
literally for years.
Diffstat (limited to 'regress/mdoc/blank')
-rw-r--r-- | regress/mdoc/blank/Makefile | 8 | ||||
-rw-r--r-- | regress/mdoc/blank/comment.in | 15 | ||||
-rw-r--r-- | regress/mdoc/blank/comment.out_ascii | 11 | ||||
-rw-r--r-- | regress/mdoc/blank/comment.out_lint | 1 | ||||
-rw-r--r-- | regress/mdoc/blank/line.in | 90 | ||||
-rw-r--r-- | regress/mdoc/blank/line.out_ascii | 77 | ||||
-rw-r--r-- | regress/mdoc/blank/line.out_lint | 23 | ||||
-rw-r--r-- | regress/mdoc/blank/list.in | 66 | ||||
-rw-r--r-- | regress/mdoc/blank/list.out_ascii | 42 | ||||
-rw-r--r-- | regress/mdoc/blank/list.out_lint | 7 |
10 files changed, 340 insertions, 0 deletions
diff --git a/regress/mdoc/blank/Makefile b/regress/mdoc/blank/Makefile new file mode 100644 index 00000000..e51424c9 --- /dev/null +++ b/regress/mdoc/blank/Makefile @@ -0,0 +1,8 @@ +# $OpenBSD: Makefile,v 1.5 2014/07/06 19:08:57 schwarze Exp $ + +REGRESS_TARGETS = line comment list +LINT_TARGETS = line comment list + +SKIP_TMAN = list + +.include <bsd.regress.mk> diff --git a/regress/mdoc/blank/comment.in b/regress/mdoc/blank/comment.in new file mode 100644 index 00000000..8b7b811f --- /dev/null +++ b/regress/mdoc/blank/comment.in @@ -0,0 +1,15 @@ +.Dd February 17, 2010 +.Dt BLANK-COMMENT 1 +.Os OpenBSD +.Sh NAME +.Nm blank-comment +.Nd normal and bogus comments +.Sh DESCRIPTION +normal comment +.\" normal +bogus comment +\." +end of text +.Pp +text \" comment +text diff --git a/regress/mdoc/blank/comment.out_ascii b/regress/mdoc/blank/comment.out_ascii new file mode 100644 index 00000000..26fde80d --- /dev/null +++ b/regress/mdoc/blank/comment.out_ascii @@ -0,0 +1,11 @@ +BLANK-COMMENT(1) General Commands Manual BLANK-COMMENT(1) + +NNAAMMEE + bbllaannkk--ccoommmmeenntt - normal and bogus comments + +DDEESSCCRRIIPPTTIIOONN + normal comment bogus comment end of text + + text text + +OpenBSD February 17, 2010 OpenBSD diff --git a/regress/mdoc/blank/comment.out_lint b/regress/mdoc/blank/comment.out_lint new file mode 100644 index 00000000..f5599f67 --- /dev/null +++ b/regress/mdoc/blank/comment.out_lint @@ -0,0 +1 @@ +mandoc: comment.in:11:3: WARNING: bad comment style diff --git a/regress/mdoc/blank/line.in b/regress/mdoc/blank/line.in new file mode 100644 index 00000000..f1946c13 --- /dev/null +++ b/regress/mdoc/blank/line.in @@ -0,0 +1,90 @@ +.Dd February 17, 2010 +.Dt BLANK-LINE 1 +.Os OpenBSD +.Sh NAME +.Nm blank-line +.Nd handling of blank line +.Sh DESCRIPTION +Single br: +.br +Single Pp: +.Pp +Single sp: +.sp +Single blank: + +Double br: +.br +.br +br Pp: +.br +.Pp +Pp br: +.Pp +.br +Double Pp: +.Pp +.Pp +br sp: +.br +.sp +sp br: +.sp +.br +Pp sp: +.Pp +.sp +Pp sp 2v: +.Pp +.sp 2v +sp Pp: +.sp +.Pp +Double sp: +.sp +.sp +br blank: +.br + +blank br: + +.br +Pp blank: +.Pp + +blank Pp: + +.Pp +sp blank: +.sp + +blank sp: + +.sp +Double blank: + + +Bd ragged sp 2v: +.Bd -ragged -offset 6n +.sp 2v +Ed sp 2v: +.Ed +.sp 2v +Bl tag sp 2v: +.Bl -tag -width 6n +.It tag +.sp 2v +El sp 2v +.El +Sh sp 2v: +.Sh CUSTOM +.sp 2v +Pp Sh Pp: +.Pp +.Sh CUSTOM TWO +.Pp +Ss Pp: +.Ss Subsection +.Pp +End. +.Pp diff --git a/regress/mdoc/blank/line.out_ascii b/regress/mdoc/blank/line.out_ascii new file mode 100644 index 00000000..7fde5795 --- /dev/null +++ b/regress/mdoc/blank/line.out_ascii @@ -0,0 +1,77 @@ +BLANK-LINE(1) General Commands Manual BLANK-LINE(1) + +NNAAMMEE + bbllaannkk--lliinnee - handling of blank line + +DDEESSCCRRIIPPTTIIOONN + Single br: + Single Pp: + + Single sp: + + Single blank: + + Double br: + br Pp: + + Pp br: + + Double Pp: + + br sp: + + sp br: + + Pp sp: + + Pp sp 2v: + + sp Pp: + + + Double sp: + + + br blank: + + blank br: + + Pp blank: + + blank Pp: + + + sp blank: + + + blank sp: + + + Double blank: + + + Bd ragged sp 2v: + + + + Ed sp 2v: + + + Bl tag sp 2v: + + tag + + + El sp 2v + Sh sp 2v: + +CCUUSSTTOOMM + Pp Sh Pp: + +CCUUSSTTOOMM TTWWOO + Ss Pp: + + SSuubbsseeccttiioonn + End. + +OpenBSD February 17, 2010 OpenBSD diff --git a/regress/mdoc/blank/line.out_lint b/regress/mdoc/blank/line.out_lint new file mode 100644 index 00000000..6e439442 --- /dev/null +++ b/regress/mdoc/blank/line.out_lint @@ -0,0 +1,23 @@ +mandoc: line.in:15:1: WARNING: blank line in fill mode, using .sp +mandoc: line.in:48:1: WARNING: blank line in fill mode, using .sp +mandoc: line.in:50:1: WARNING: blank line in fill mode, using .sp +mandoc: line.in:54:1: WARNING: blank line in fill mode, using .sp +mandoc: line.in:56:1: WARNING: blank line in fill mode, using .sp +mandoc: line.in:60:1: WARNING: blank line in fill mode, using .sp +mandoc: line.in:62:1: WARNING: blank line in fill mode, using .sp +mandoc: line.in:65:1: WARNING: blank line in fill mode, using .sp +mandoc: line.in:66:1: WARNING: blank line in fill mode, using .sp +mandoc: line.in:18:2: WARNING: skipping paragraph macro: br after br +mandoc: line.in:20:2: WARNING: skipping paragraph macro: br before Pp +mandoc: line.in:24:2: WARNING: skipping paragraph macro: br after Pp +mandoc: line.in:26:2: WARNING: skipping paragraph macro: Pp before Pp +mandoc: line.in:33:2: WARNING: skipping paragraph macro: br after sp +mandoc: line.in:36:2: WARNING: skipping paragraph macro: sp after Pp +mandoc: line.in:39:2: WARNING: skipping paragraph macro: sp after Pp +mandoc: line.in:51:2: WARNING: skipping paragraph macro: br after sp +mandoc: line.in:54:1: WARNING: skipping paragraph macro: sp after Pp +mandoc: line.in:81:2: WARNING: skipping paragraph macro: sp after Sh +mandoc: line.in:83:2: WARNING: skipping paragraph macro: Pp at the end of Sh +mandoc: line.in:85:2: WARNING: skipping paragraph macro: Pp after Sh +mandoc: line.in:88:2: WARNING: skipping paragraph macro: Pp after Ss +mandoc: line.in:90:2: WARNING: skipping paragraph macro: Pp at the end of Ss diff --git a/regress/mdoc/blank/list.in b/regress/mdoc/blank/list.in new file mode 100644 index 00000000..067e3dcf --- /dev/null +++ b/regress/mdoc/blank/list.in @@ -0,0 +1,66 @@ +.Dd July 17, 2012 +.Dt BLANK-LIST 1 +.Os OpenBSD +.Sh NAME +.Nm blank-list +.Nd handling of blank lines in lists +.Sh DESCRIPTION +normal list: +.Bl -item -offset indent +.It +first item +.It +second item +.El +list with paragraphs: +.Bl -item -offset indent +.It +first item +.Pp +.It +second item +.Pp +.El +list with final paragraph: +.Bl -item -offset indent +.It +item +.El +.Pp +list with double paragraph: +.Bl -item -offset indent +.It +item +.Pp +.El +.Pp +normal compact list: +.Bl -item -compact -offset indent +.It +first item +.It +second item +.El +compact list with paragraphs: +.Bl -item -compact -offset indent +.It +first item +.Pp +.It +second item +.Pp +.El +compact list with final paragraph: +.Bl -item -compact -offset indent +.It +item +.El +.Pp +compact list with double paragraph: +.Bl -item -compact -offset indent +.It +item +.Pp +.El +.Pp +End. diff --git a/regress/mdoc/blank/list.out_ascii b/regress/mdoc/blank/list.out_ascii new file mode 100644 index 00000000..5f0eaa98 --- /dev/null +++ b/regress/mdoc/blank/list.out_ascii @@ -0,0 +1,42 @@ +BLANK-LIST(1) General Commands Manual BLANK-LIST(1) + +NNAAMMEE + bbllaannkk--lliisstt - handling of blank lines in lists + +DDEESSCCRRIIPPTTIIOONN + normal list: + + first item + + second item + list with paragraphs: + + first item + + second item + + list with final paragraph: + + item + + list with double paragraph: + + item + + normal compact list: + first item + second item + compact list with paragraphs: + first item + + second item + + compact list with final paragraph: + item + + compact list with double paragraph: + item + + End. + +OpenBSD July 17, 2012 OpenBSD diff --git a/regress/mdoc/blank/list.out_lint b/regress/mdoc/blank/list.out_lint new file mode 100644 index 00000000..a90d91a4 --- /dev/null +++ b/regress/mdoc/blank/list.out_lint @@ -0,0 +1,7 @@ +mandoc: list.in:19:2: WARNING: skipping paragraph macro: Pp before It +mandoc: list.in:22:2: WARNING: moving paragraph macro out of list: Pp +mandoc: list.in:34:2: WARNING: moving paragraph macro out of list: Pp +mandoc: list.in:34:2: WARNING: skipping paragraph macro: Pp before Pp +mandoc: list.in:51:2: WARNING: moving paragraph macro out of list: Pp +mandoc: list.in:63:2: WARNING: moving paragraph macro out of list: Pp +mandoc: list.in:63:2: WARNING: skipping paragraph macro: Pp before Pp |