aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-06-12 11:21:44 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-06-12 11:21:44 +0000
commitaf1a16ee46c535e7e97fe26fc4c6c05844de41e2 (patch)
treebdb915b10db4fb4c1abb8e6c595cfc2957cb98e2 /regress
parent0b20ee1ae342d058c3e78b46ba69335c80addfda (diff)
downloadmandoc-af1a16ee46c535e7e97fe26fc4c6c05844de41e2.tar.gz
mandoc-af1a16ee46c535e7e97fe26fc4c6c05844de41e2.tar.zst
mandoc-af1a16ee46c535e7e97fe26fc4c6c05844de41e2.zip
Cache all of `Bd's resolved arguments into mdoc_bd, which is stashed in
the "data" union in mdoc_node. Allows me to remove some ugly loops in the front-end and duplicate tests in mdoc_action.c. Add a regression test to make sure we're not doing anything bad (more to come).
Diffstat (limited to 'regress')
-rw-r--r--regress/mdoc/Bd/bd0.in28
1 files changed, 28 insertions, 0 deletions
diff --git a/regress/mdoc/Bd/bd0.in b/regress/mdoc/Bd/bd0.in
new file mode 100644
index 00000000..5d5c759e
--- /dev/null
+++ b/regress/mdoc/Bd/bd0.in
@@ -0,0 +1,28 @@
+.Dd $Mdocdate: June 12 2010 $
+.Dt FOO 1
+.Os
+.Sh NAME
+.Nm foo
+.Nd bar
+.Sh DESCRIPTION
+1
+.Em who are you?
+.Bd -ragged
+a b
+c d
+.Ed
+2
+.Bd -unfilled
+a b
+c d
+.Ed
+3
+.Bd -filled
+a b
+c d
+.Ed
+4
+.Bd -literal
+a b
+c d
+.Ed