summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2014-12-02 10:07:18 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2014-12-02 10:07:18 +0000
commitd1ee2ba11fb743e58aa2d47ed35ad3cd15a1a6ee (patch)
tree352dfa7c68418e531d642f50a59f307e17b50f66 /regress/usr.bin
parent4c9086c86bb65523d4879c5597633949740fa507 (diff)
Fix the implementation and documentation of \c (continue text input line).
In particular, make it work in no-fill mode, too. Reminded by Carsten dot Kunze at arcor dot de (Heirloom roff).
Diffstat (limited to 'regress/usr.bin')
-rw-r--r--regress/usr.bin/mandoc/roff/esc/Makefile6
-rw-r--r--regress/usr.bin/mandoc/roff/esc/c.in6
-rw-r--r--regress/usr.bin/mandoc/roff/esc/c.out_ascii4
-rw-r--r--regress/usr.bin/mandoc/roff/esc/c_man.in12
-rw-r--r--regress/usr.bin/mandoc/roff/esc/c_man.out_ascii15
5 files changed, 38 insertions, 5 deletions
diff --git a/regress/usr.bin/mandoc/roff/esc/Makefile b/regress/usr.bin/mandoc/roff/esc/Makefile
index ca934316948..1d63a92f488 100644
--- a/regress/usr.bin/mandoc/roff/esc/Makefile
+++ b/regress/usr.bin/mandoc/roff/esc/Makefile
@@ -1,10 +1,10 @@
-# $OpenBSD: Makefile,v 1.6 2014/08/14 01:58:51 schwarze Exp $
+# $OpenBSD: Makefile,v 1.7 2014/12/02 10:07:17 schwarze Exp $
-REGRESS_TARGETS = one two multi B c f h w z ignore
+REGRESS_TARGETS = one two multi B c c_man f h w z ignore
LINT_TARGETS = B h w
# Postprocessing to remove "character backspace" sequences
-# unless they are foolowed by the same character again.
+# unless they are followed by the same character again.
# This removes underlining as well, so we mustn't use it.
# Cannot use /g because matches progress backwards.
diff --git a/regress/usr.bin/mandoc/roff/esc/c.in b/regress/usr.bin/mandoc/roff/esc/c.in
index be95f2bcd03..c3b7a912c51 100644
--- a/regress/usr.bin/mandoc/roff/esc/c.in
+++ b/regress/usr.bin/mandoc/roff/esc/c.in
@@ -1,4 +1,4 @@
-.Dd May 28, 2012
+.Dd December 2, 2014
.Dt ESC-C 1
.Os OpenBSD
.Sh NAME
@@ -11,3 +11,7 @@ and
.Dq word :
one\c
word
+.Bd -literal
+one\c
+word
+.Ed
diff --git a/regress/usr.bin/mandoc/roff/esc/c.out_ascii b/regress/usr.bin/mandoc/roff/esc/c.out_ascii
index c686cf32cab..5ddc8443235 100644
--- a/regress/usr.bin/mandoc/roff/esc/c.out_ascii
+++ b/regress/usr.bin/mandoc/roff/esc/c.out_ascii
@@ -6,4 +6,6 @@ NNAAMMEE
DDEESSCCRRIIPPTTIIOONN
No space between ``one'' and ``word'': oneword
-OpenBSD May 28, 2012 OpenBSD
+ oneword
+
+OpenBSD December 2, 2014 OpenBSD
diff --git a/regress/usr.bin/mandoc/roff/esc/c_man.in b/regress/usr.bin/mandoc/roff/esc/c_man.in
new file mode 100644
index 00000000000..c18fad10c99
--- /dev/null
+++ b/regress/usr.bin/mandoc/roff/esc/c_man.in
@@ -0,0 +1,12 @@
+.TH ESC-C_MAN 1 "December 2, 2014" OpenBSD
+.SH NAME
+esc-c_man \- the roff escape c sequence: remove trailing space
+.SH DESCRIPTION
+No space between "one" and "word":
+one\c
+word
+.nf
+one\c
+word
+.fi
+final text
diff --git a/regress/usr.bin/mandoc/roff/esc/c_man.out_ascii b/regress/usr.bin/mandoc/roff/esc/c_man.out_ascii
new file mode 100644
index 00000000000..d00b1b48d21
--- /dev/null
+++ b/regress/usr.bin/mandoc/roff/esc/c_man.out_ascii
@@ -0,0 +1,15 @@
+ESC-C_MAN(1) General Commands Manual ESC-C_MAN(1)
+
+
+
+NNAAMMEE
+ esc-c_man - the roff escape c sequence: remove trailing space
+
+DDEESSCCRRIIPPTTIIOONN
+ No space between "one" and "word": oneword
+ oneword
+ final text
+
+
+
+OpenBSD December 2, 2014 ESC-C_MAN(1)