diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-11-16 21:29:28 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-11-16 21:29:28 +0000 |
commit | f116a4618a1b09e77ce11f38621db46dc0320daa (patch) | |
tree | 3f2d86520c79407136a2373b0e4930d6665dcb40 /regress/usr.bin | |
parent | 56b7257d2aff5d970d033e895080664dbe028674 (diff) |
When a line (in the sense of term_flushln()) contains white space only,
the `vbl' variable includes the left margin, but `vis' does not.
Prevent a `vis' underflow that caused a bogus blank line.
Bug reported by Carsten Kunze, found in less(1): .Bl -tag ... .It " "
Diffstat (limited to 'regress/usr.bin')
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bl/tag.in | 4 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bl/tag.out_ascii | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/tag.in b/regress/usr.bin/mandoc/mdoc/Bl/tag.in index a8ded58d901..649da804535 100644 --- a/regress/usr.bin/mandoc/mdoc/Bl/tag.in +++ b/regress/usr.bin/mandoc/mdoc/Bl/tag.in @@ -1,4 +1,4 @@ -.Dd April 8, 2014 +.Dd November 16, 2014 .Dt BL-TAG 1 .Os OpenBSD .Sh NAME @@ -53,6 +53,8 @@ Trailing white space in the head: b .It "a " b +.It " " +white space only .It "a " b .El diff --git a/regress/usr.bin/mandoc/mdoc/Bl/tag.out_ascii b/regress/usr.bin/mandoc/mdoc/Bl/tag.out_ascii index c8f15374f09..959b1c8a4b8 100644 --- a/regress/usr.bin/mandoc/mdoc/Bl/tag.out_ascii +++ b/regress/usr.bin/mandoc/mdoc/Bl/tag.out_ascii @@ -46,6 +46,8 @@ DDEESSCCRRIIPPTTIIOONN a b + white space only + a b Non-numeric width specification: @@ -75,4 +77,4 @@ DDEESSCCRRIIPPTTIIOONN second paragraph -OpenBSD April 8, 2014 OpenBSD +OpenBSD November 16, 2014 OpenBSD |