summaryrefslogtreecommitdiffstats
path: root/regress/man/TP
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-06-03 15:55:24 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-06-03 15:55:24 +0000
commit90897efbceb54855c1943f8e19d5bba5a542ff65 (patch)
treee2c70156dcf82c5d21e24e9dda0d94d0cb1a26f2 /regress/man/TP
parent3248b177a4b5624bb57796f898b81736244d2579 (diff)
downloadmandoc-90897efbceb54855c1943f8e19d5bba5a542ff65.tar.gz
ignore blank lines in man(7) next line scope;
strange groff edge case behaviour found in multimedia/mjpegtools
Diffstat (limited to 'regress/man/TP')
-rw-r--r--regress/man/TP/Makefile1
-rw-r--r--regress/man/TP/broken.in4
-rw-r--r--regress/man/TP/broken.out_ascii2
-rw-r--r--regress/man/TP/broken.out_lint1
4 files changed, 8 insertions, 0 deletions
diff --git a/regress/man/TP/Makefile b/regress/man/TP/Makefile
index b867ba63..8d81e954 100644
--- a/regress/man/TP/Makefile
+++ b/regress/man/TP/Makefile
@@ -8,6 +8,7 @@ LINT_TARGETS = broken double eof
# groff-1.22.3 defects:
# - If .TP precedes .RE, the latter does not properly reset indentation.
# - If the last line of the file is .TP, groff does not print a page footer.
+# - A blank line in .TP next line scope causes a blank line.
SKIP_GROFF = broken eof
diff --git a/regress/man/TP/broken.in b/regress/man/TP/broken.in
index c111caeb..5638ea33 100644
--- a/regress/man/TP/broken.in
+++ b/regress/man/TP/broken.in
@@ -11,3 +11,7 @@ text
.RE
regular
text
+.TP
+
+head
+body
diff --git a/regress/man/TP/broken.out_ascii b/regress/man/TP/broken.out_ascii
index e19efdf0..68fab4f0 100644
--- a/regress/man/TP/broken.out_ascii
+++ b/regress/man/TP/broken.out_ascii
@@ -10,6 +10,8 @@ DDEESSCCRRIIPPTTIIOONN
indented text
regular text
+ head body
+
OpenBSD December 16, 2014 TP-BROKEN(1)
diff --git a/regress/man/TP/broken.out_lint b/regress/man/TP/broken.out_lint
index 3a1024fc..1a3a433b 100644
--- a/regress/man/TP/broken.out_lint
+++ b/regress/man/TP/broken.out_lint
@@ -1 +1,2 @@
mandoc: broken.in:10:2: WARNING: line scope broken: RE breaks TP
+mandoc: broken.in:15:1: WARNING: skipping blank line in line scope