aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-06-14 01:31:26 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-06-14 01:31:26 +0000
commit078c4f79913f5f296b88db4a9fed67f1ea124c86 (patch)
treedeafb282df1e0b025b4322b763df47080a885828 /regress
parent3352a8e9bd0f6a0666c5dcb84ccdb5536471d280 (diff)
downloadmandoc-078c4f79913f5f296b88db4a9fed67f1ea124c86.tar.gz
mandoc-078c4f79913f5f296b88db4a9fed67f1ea124c86.tar.zst
mandoc-078c4f79913f5f296b88db4a9fed67f1ea124c86.zip
implement the roff(7) \p (break output line) escape sequence
Diffstat (limited to 'regress')
-rw-r--r--regress/roff/esc/Makefile2
-rw-r--r--regress/roff/esc/p.in15
-rw-r--r--regress/roff/esc/p.out_ascii19
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