aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit2fa768dd3258ecc39730b020f47e705a97c74d79 (patch)
treefc8959d9b49eeade80a7f7450bf11cffa45c796d /regress/roff/esc
parent936ee863554c8349abc92544d5db2de95d83f48b (diff)
downloadmandoc-2fa768dd3258ecc39730b020f47e705a97c74d79.tar.gz
mandoc-2fa768dd3258ecc39730b020f47e705a97c74d79.tar.zst
mandoc-2fa768dd3258ecc39730b020f47e705a97c74d79.zip
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