diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-12-18 20:15:33 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-12-18 20:15:33 +0000 |
commit | c04a6705132999d8464f8026b1c44655c5591c2c (patch) | |
tree | 0ce02063d39eade23d95b9cecc68c8107982453d /regress | |
parent | 06b4fbee4d3c74a28c980dcbf7c9ca455d3cb2f8 (diff) |
Only keep leading .Sm inside a list when it immediately precedes
the first .It. Otherwise, move it out together with whatever
follows. Fixing an assertion failure found by jsg@ with afl.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bl/noIt.in | 4 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bl/noIt.out_ascii | 2 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bl/noIt.out_lint | 7 |
3 files changed, 9 insertions, 4 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/noIt.in b/regress/usr.bin/mandoc/mdoc/Bl/noIt.in index 5e5b4b473a3..46d8c0d283c 100644 --- a/regress/usr.bin/mandoc/mdoc/Bl/noIt.in +++ b/regress/usr.bin/mandoc/mdoc/Bl/noIt.in @@ -13,7 +13,9 @@ Tagged text. .El .Bl -bullet Stray text. -.Em More stray text. +.Sm off +.Em More Sy stray Em text. +.Sm on .It Bullet point. .El diff --git a/regress/usr.bin/mandoc/mdoc/Bl/noIt.out_ascii b/regress/usr.bin/mandoc/mdoc/Bl/noIt.out_ascii index a7a0f0daf19..9f603f1cb0a 100644 --- a/regress/usr.bin/mandoc/mdoc/Bl/noIt.out_ascii +++ b/regress/usr.bin/mandoc/mdoc/Bl/noIt.out_ascii @@ -7,7 +7,7 @@ DDEESSCCRRIIPPTTIIOONN Stray text. _M_o_r_e _s_t_r_a_y _t_e_x_t_. tag Tagged text. - Stray text. _M_o_r_e _s_t_r_a_y _t_e_x_t_. + Stray text. _M_o_r_essttrraayy_t_e_x_t_. ++oo Bullet point. Stray text only. diff --git a/regress/usr.bin/mandoc/mdoc/Bl/noIt.out_lint b/regress/usr.bin/mandoc/mdoc/Bl/noIt.out_lint index 00f22c91dd1..efe0eeeacfa 100644 --- a/regress/usr.bin/mandoc/mdoc/Bl/noIt.out_lint +++ b/regress/usr.bin/mandoc/mdoc/Bl/noIt.out_lint @@ -1,5 +1,8 @@ mandoc: noIt.in:9:1: WARNING: moving content out of list: text mandoc: noIt.in:10:2: WARNING: moving content out of list: Em mandoc: noIt.in:15:1: WARNING: moving content out of list: text -mandoc: noIt.in:16:2: WARNING: moving content out of list: Em -mandoc: noIt.in:21:1: WARNING: moving content out of list: text +mandoc: noIt.in:16:2: WARNING: moving content out of list: Sm +mandoc: noIt.in:17:2: WARNING: moving content out of list: Em +mandoc: noIt.in:17:10: WARNING: moving content out of list: Sy +mandoc: noIt.in:17:19: WARNING: moving content out of list: Em +mandoc: noIt.in:23:1: WARNING: moving content out of list: text |