diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-08-16 19:47:18 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-08-16 19:47:18 +0000 |
commit | ebfb6201c40af8242ec05ddf7940044817d39210 (patch) | |
tree | 58104837af10f4de1a249dd9ca619efea785c983 /regress/usr.bin | |
parent | 2fd0bfeeb93d297a7a5ed8dc39b0fbe93b8282a3 (diff) |
If a stray .It follows .El, we are no longer in the list,
even though the list is still the last processed macro.
This fixes a regression introduced in mdoc_macro.c rev. 1.95:
Ulrich Spoerlein <uqs at FreeBSD> reports that various of their
kernel manuals trigger assertions.
Diffstat (limited to 'regress/usr.bin')
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bl/bareIt.in | 7 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bl/bareIt.out_ascii | 4 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bl/bareIt.out_lint | 2 |
3 files changed, 11 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/bareIt.in b/regress/usr.bin/mandoc/mdoc/Bl/bareIt.in index e844b270bad..ad43c4bf7ec 100644 --- a/regress/usr.bin/mandoc/mdoc/Bl/bareIt.in +++ b/regress/usr.bin/mandoc/mdoc/Bl/bareIt.in @@ -1,4 +1,4 @@ -.Dd July 30, 2014 +.Dd August 16, 2014 .Dt BL-BAREIT 1 .Os OpenBSD .Sh NAME @@ -7,4 +7,9 @@ .Sh DESCRIPTION initial text .It argument +.Bl -dash +.It +item +.El +.It argument final text diff --git a/regress/usr.bin/mandoc/mdoc/Bl/bareIt.out_ascii b/regress/usr.bin/mandoc/mdoc/Bl/bareIt.out_ascii index 9ded54f765d..aa1401a0b55 100644 --- a/regress/usr.bin/mandoc/mdoc/Bl/bareIt.out_ascii +++ b/regress/usr.bin/mandoc/mdoc/Bl/bareIt.out_ascii @@ -5,6 +5,8 @@ NNAAMMEE DDEESSCCRRIIPPTTIIOONN initial text + + -- item final text -OpenBSD July 30, 2014 OpenBSD +OpenBSD August 16, 2014 OpenBSD diff --git a/regress/usr.bin/mandoc/mdoc/Bl/bareIt.out_lint b/regress/usr.bin/mandoc/mdoc/Bl/bareIt.out_lint index 45109ee2eb3..9badbf23afe 100644 --- a/regress/usr.bin/mandoc/mdoc/Bl/bareIt.out_lint +++ b/regress/usr.bin/mandoc/mdoc/Bl/bareIt.out_lint @@ -1 +1,3 @@ mandoc: bareIt.in:9:2: ERROR: skipping item outside list: It argument +mandoc: bareIt.in:9:2: WARNING: skipping paragraph macro: br before Bl +mandoc: bareIt.in:14:2: ERROR: skipping item outside list: It argument |