summaryrefslogtreecommitdiffstats
path: root/regress/roff/esc
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-06-17 13:06:16 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-06-17 13:06:16 +0000
commit8b829c3fb9f3b6e04849fd535eeb826b618e533a (patch)
treefeb2614c572040eb7b2243865dae197c6991c68a /regress/roff/esc
parent559c18edcfbf60d30aedce9d3c81d132f3e77621 (diff)
downloadmandoc-8b829c3fb9f3b6e04849fd535eeb826b618e533a.tar.gz
correct handling of blank lines after \c
Diffstat (limited to 'regress/roff/esc')
-rw-r--r--regress/roff/esc/c.in9
-rw-r--r--regress/roff/esc/c.out_ascii4
-rw-r--r--regress/roff/esc/c_man.in9
-rw-r--r--regress/roff/esc/c_man.out_ascii3
4 files changed, 25 insertions, 0 deletions
diff --git a/regress/roff/esc/c.in b/regress/roff/esc/c.in
index c3b7a912..b7b47bc1 100644
--- a/regress/roff/esc/c.in
+++ b/regress/roff/esc/c.in
@@ -15,3 +15,12 @@ word
one\c
word
.Ed
+Blank line after \ec:
+one\c
+
+word
+.Bd -literal
+one\c
+
+word
+.Ed
diff --git a/regress/roff/esc/c.out_ascii b/regress/roff/esc/c.out_ascii
index a0f6a996..9f8570c4 100644
--- a/regress/roff/esc/c.out_ascii
+++ b/regress/roff/esc/c.out_ascii
@@ -7,5 +7,9 @@ DDEESSCCRRIIPPTTIIOONN
No space between "one" and "word": oneword
oneword
+ Blank line after \c: one word
+
+ one
+ word
OpenBSD December 2, 2014 OpenBSD
diff --git a/regress/roff/esc/c_man.in b/regress/roff/esc/c_man.in
index c18fad10..09e1ed3b 100644
--- a/regress/roff/esc/c_man.in
+++ b/regress/roff/esc/c_man.in
@@ -9,4 +9,13 @@ word
one\c
word
.fi
+Blank line after \ec:
+one\c
+
+word
+.nf
+one\c
+
+word
+.fi
final text
diff --git a/regress/roff/esc/c_man.out_ascii b/regress/roff/esc/c_man.out_ascii
index d00b1b48..9062c335 100644
--- a/regress/roff/esc/c_man.out_ascii
+++ b/regress/roff/esc/c_man.out_ascii
@@ -8,6 +8,9 @@ NNAAMMEE
DDEESSCCRRIIPPTTIIOONN
No space between "one" and "word": oneword
oneword
+ Blank line after \c: one word
+ one
+ word
final text