summaryrefslogtreecommitdiffstats
path: root/regress
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-08-25 12:33:03 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-08-25 12:33:03 +0000
commit4208da29a6d83d71a70576139d86e6a306290132 (patch)
treec497947680682fdf1a2ff6a6ea51ff6e3e54c80e /regress
parentf5133ff5de286c3849ba772719280fcec35ca374 (diff)
downloadmandoc-4208da29a6d83d71a70576139d86e6a306290132.tar.gz
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')
-rw-r--r--regress/roff/esc/c_man.in19
-rw-r--r--regress/roff/esc/c_man.out_ascii13
2 files changed, 29 insertions, 3 deletions
diff --git a/regress/roff/esc/c_man.in b/regress/roff/esc/c_man.in
index c530a472..f6a5b0e5 100644
--- a/regress/roff/esc/c_man.in
+++ b/regress/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/roff/esc/c_man.out_ascii b/regress/roff/esc/c_man.out_ascii
index 9062c335..a3a50889 100644
--- a/regress/roff/esc/c_man.out_ascii
+++ b/regress/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)