summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2018-08-25 12:28:53 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2018-08-25 12:28:53 +0000
commit813116b59ad2edc392187f0acd0ecf9b3f98819e (patch)
treee57bad44a158df2b82a51fcb6772c1c6fbd8ff76 /regress/usr.bin
parent077c9a5effc8adba4aca3183ce37eeec11a4cb51 (diff)
If man(7) next-line scope is open and the line ends with \c,
the scope remains open. Needed for example for groff_man(7).
Diffstat (limited to 'regress/usr.bin')
-rw-r--r--regress/usr.bin/mandoc/roff/esc/c_man.in19
-rw-r--r--regress/usr.bin/mandoc/roff/esc/c_man.out_ascii13
2 files changed, 29 insertions, 3 deletions
diff --git a/regress/usr.bin/mandoc/roff/esc/c_man.in b/regress/usr.bin/mandoc/roff/esc/c_man.in
index c530a4728fc..f6a5b0e5bb0 100644
--- a/regress/usr.bin/mandoc/roff/esc/c_man.in
+++ b/regress/usr.bin/mandoc/roff/esc/c_man.in
@@ -1,15 +1,18 @@
-.\" $OpenBSD: c_man.in,v 1.3 2017/07/04 14:53:27 schwarze Exp $
-.TH ESC-C_MAN 1 "December 2, 2014"
+.\" $OpenBSD: c_man.in,v 1.4 2018/08/25 12:28:52 schwarze Exp $
+.TH ESC-C_MAN 1 "August 25, 2018"
.SH NAME
esc-c_man \- the roff escape c sequence: remove trailing space
.SH DESCRIPTION
No space between "one" and "word":
one\c
word
+.PP
+The same in no-fill mode:
.nf
one\c
word
.fi
+.PP
Blank line after \ec:
one\c
@@ -19,4 +22,16 @@ one\c
word
.fi
+.PP
+In next-line element scope:
+.B
+one\c
+word
+.PP
+In next-line block scope:
+.TP
+one\c
+word
+list body
+.PP
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
index 9062c335ae2..a3a50889c45 100644
--- a/regress/usr.bin/mandoc/roff/esc/c_man.out_ascii
+++ b/regress/usr.bin/mandoc/roff/esc/c_man.out_ascii
@@ -7,12 +7,23 @@ NNAAMMEE
DDEESSCCRRIIPPTTIIOONN
No space between "one" and "word": oneword
+
+ The same in no-fill mode:
oneword
+
Blank line after \c: one word
one
word
+
+ In next-line element scope: oonneewwoorrdd
+
+ In next-line block scope:
+
+ oneword
+ list body
+
final text
-OpenBSD December 2, 2014 ESC-C_MAN(1)
+OpenBSD August 25, 2018 ESC-C_MAN(1)