From 2ed520ef0116f227a4e219a833990f4b42bb524b Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 31 May 2010 20:14:10 +0000 Subject: Macro lines now infer an `It' if they immediately follow a `Bl -column' or a closed-out `It' block within a `Bl -column' (which only happens when a macro or free-form text is encountered prior to an `It'). Added some regression tests for this behaviour. --- regress/mdoc/It/freecol-macro0.in | 12 ++++++++++++ regress/mdoc/It/freecol-macro1.in | 13 +++++++++++++ regress/mdoc/It/freecol-macro2.in | 18 ++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 regress/mdoc/It/freecol-macro0.in create mode 100644 regress/mdoc/It/freecol-macro1.in create mode 100644 regress/mdoc/It/freecol-macro2.in (limited to 'regress/mdoc/It') diff --git a/regress/mdoc/It/freecol-macro0.in b/regress/mdoc/It/freecol-macro0.in new file mode 100644 index 00000000..4cfbed16 --- /dev/null +++ b/regress/mdoc/It/freecol-macro0.in @@ -0,0 +1,12 @@ +.Dd $Mdocdate$ +.Dt FOO +.Os +.Sh NAME +.Nm foo +.Nd bar +.Sh DESCRIPTION +hello +.Bl -column asdfasdf asdfasdf +.Fl foo Ta bar +baz xyzzy +.El diff --git a/regress/mdoc/It/freecol-macro1.in b/regress/mdoc/It/freecol-macro1.in new file mode 100644 index 00000000..7f81c282 --- /dev/null +++ b/regress/mdoc/It/freecol-macro1.in @@ -0,0 +1,13 @@ +.Dd $Mdocdate$ +.Dt FOO +.Os +.Sh NAME +.Nm foo +.Nd bar +.Sh DESCRIPTION +hello +.Bl -column asdfasdf asdfasdf +.Fl foo Ta bar +.Ar foo Ta bar +baz xyzzy +.El diff --git a/regress/mdoc/It/freecol-macro2.in b/regress/mdoc/It/freecol-macro2.in new file mode 100644 index 00000000..8d5bcc70 --- /dev/null +++ b/regress/mdoc/It/freecol-macro2.in @@ -0,0 +1,18 @@ +.Dd $Mdocdate$ +.Dt FOO +.Os +.Sh NAME +.Nm foo +.Nd bar +.Sh DESCRIPTION +hello +.Bl -column asdfasdfasdf asdfasdfasdf +.Fl foo Ta bar +.Ar foo Ta bar +baz xyzzy +.It hello there +.It this should Ta +not break +.It another Ta +.Fl try +.El -- cgit