summaryrefslogtreecommitdiffstats
path: root/regress/mdoc/It
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-31 20:14:10 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-31 20:14:10 +0000
commit2ed520ef0116f227a4e219a833990f4b42bb524b (patch)
tree8bd3428e12902772c6ee7e551ef98e0717c54cfe /regress/mdoc/It
parent7dcb39bda3829c02e25af335e95631edef2a260b (diff)
downloadmandoc-2ed520ef0116f227a4e219a833990f4b42bb524b.tar.gz
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.
Diffstat (limited to 'regress/mdoc/It')
-rw-r--r--regress/mdoc/It/freecol-macro0.in12
-rw-r--r--regress/mdoc/It/freecol-macro1.in13
-rw-r--r--regress/mdoc/It/freecol-macro2.in18
3 files changed, 43 insertions, 0 deletions
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