summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2011-01-31 03:04:27 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2011-01-31 03:04:27 +0000
commitc1243095b4ef7e52ef33a029a18d29bd5bf86932 (patch)
tree551fbbe5c6c0689a77d6f7d7c597bb6c56d3be72 /regress
parenta8ff4ccf3ae14e3af14a3520d2ec5908ca60e7bf (diff)
When in a <PRE>, don't print out the <BR> before lines that have
leading whitespace; from kristaps@.
Diffstat (limited to 'regress')
-rw-r--r--regress/usr.bin/mandoc/char/space/leading-mdoc.in10
-rw-r--r--regress/usr.bin/mandoc/char/space/leading-mdoc.out_ascii7
2 files changed, 17 insertions, 0 deletions
diff --git a/regress/usr.bin/mandoc/char/space/leading-mdoc.in b/regress/usr.bin/mandoc/char/space/leading-mdoc.in
index 9b806cf18d2..171da4a0a73 100644
--- a/regress/usr.bin/mandoc/char/space/leading-mdoc.in
+++ b/regress/usr.bin/mandoc/char/space/leading-mdoc.in
@@ -12,3 +12,13 @@ second normal line
normal line after a macro line
.Ux
leading space after a macro line
+.Bd -literal
+normal line in a literal display
+ leading space in a literal display
+another normal line
+.Ed
+.Bd -filled
+normal line in a filled display
+ leading space in a filled display
+another normal line
+.Ed
diff --git a/regress/usr.bin/mandoc/char/space/leading-mdoc.out_ascii b/regress/usr.bin/mandoc/char/space/leading-mdoc.out_ascii
index eda38c67b4e..4a8f24ac622 100644
--- a/regress/usr.bin/mandoc/char/space/leading-mdoc.out_ascii
+++ b/regress/usr.bin/mandoc/char/space/leading-mdoc.out_ascii
@@ -8,3 +8,10 @@ DDEESSCCRRIIPPTTIIOONN
line with a leading space UNIX normal line after a macro line UNIX
leading space after a macro line
+ normal line in a literal display
+ leading space in a literal display
+ another normal line
+
+ normal line in a filled display
+ leading space in a filled display another normal line
+