diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-14 01:31:26 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-14 01:31:26 +0000 |
commit | 309a80562f7c43b81a190188a3f46c2509dd0c26 (patch) | |
tree | 0ca524ad39e42c5d6ad2499c21781722b17f0b5d /regress | |
parent | 28aefcdcb96546f06ba44462300a9e7edaa5e9be (diff) | |
download | mandoc-309a80562f7c43b81a190188a3f46c2509dd0c26.tar.gz |
implement the roff(7) \p (break output line) escape sequence
Diffstat (limited to 'regress')
-rw-r--r-- | regress/roff/esc/Makefile | 2 | ||||
-rw-r--r-- | regress/roff/esc/p.in | 15 | ||||
-rw-r--r-- | regress/roff/esc/p.out_ascii | 19 |
3 files changed, 35 insertions, 1 deletions
diff --git a/regress/roff/esc/Makefile b/regress/roff/esc/Makefile index f0860368..4c8e492b 100644 --- a/regress/roff/esc/Makefile +++ b/regress/roff/esc/Makefile @@ -1,6 +1,6 @@ # $OpenBSD: Makefile,v 1.11 2015/04/29 18:32:57 schwarze Exp $ -REGRESS_TARGETS = one two multi B c c_man e f h o w z ignore +REGRESS_TARGETS = one two multi B c c_man e f h o p w z ignore LINT_TARGETS = B h w ignore .include <bsd.regress.mk> diff --git a/regress/roff/esc/p.in b/regress/roff/esc/p.in new file mode 100644 index 00000000..b94ab13a --- /dev/null +++ b/regress/roff/esc/p.in @@ -0,0 +1,15 @@ +.Dd June 14, 2017 +.Dt ESC-P 1 +.Os OpenBSD +.Sh NAME +.Nm esc-p +.Nd line break escape sequence +.Sh DESCRIPTION +no blank: line one\pline two +.Pp +blank after esc: line one\p line two +.Pp +blank before esc: line one \pline two +.Pp +at eol: line one\p +line two diff --git a/regress/roff/esc/p.out_ascii b/regress/roff/esc/p.out_ascii new file mode 100644 index 00000000..488e2c61 --- /dev/null +++ b/regress/roff/esc/p.out_ascii @@ -0,0 +1,19 @@ +ESC-P(1) General Commands Manual ESC-P(1) + +NNAAMMEE + eesscc--pp - line break escape sequence + +DDEESSCCRRIIPPTTIIOONN + no blank: line oneline + two + + blank after esc: line one + line two + + blank before esc: line one line + two + + at eol: line one + line two + +OpenBSD June 14, 2017 OpenBSD |