From 870322bd99e8a445ec84289025691baf9352ce27 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 25 Aug 2018 12:33:03 +0000 Subject: 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). --- regress/roff/esc/c_man.in | 19 +++++++++++++++++-- regress/roff/esc/c_man.out_ascii | 13 ++++++++++++- 2 files changed, 29 insertions(+), 3 deletions(-) (limited to 'regress/roff/esc') 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) -- cgit v1.2.3-56-ge451