summaryrefslogtreecommitdiffstatshomepage
path: root/regress
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-17 00:06:36 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-17 00:06:36 +0000
commitf5c2df1cceaa1530ce8e5dc49f5b6d0b884e520f (patch)
tree944f078fa89722a59f50c9548b8d07f7ba0f481b /regress
parentac335ec98abf9e1439628e44539f84a225f5d743 (diff)
downloadmandoc-f5c2df1cceaa1530ce8e5dc49f5b6d0b884e520f.tar.gz
mandoc-f5c2df1cceaa1530ce8e5dc49f5b6d0b884e520f.tar.zst
mandoc-f5c2df1cceaa1530ce8e5dc49f5b6d0b884e520f.zip
libroff now is aware of which sub-nodes should be interpreted even in a
conditional-negative context so as to preserve structural integrity. Initial "rules" (deny/allow) are now inherited for future work in evaluating conditionals. Lint-fix noted by Joerg. Added regression tests for zany constructs.
Diffstat (limited to 'regress')
-rw-r--r--regress/roff/ig/cond0.in17
-rw-r--r--regress/roff/ig/override0.in16
2 files changed, 33 insertions, 0 deletions
diff --git a/regress/roff/ig/cond0.in b/regress/roff/ig/cond0.in
new file mode 100644
index 00000000..993e31a5
--- /dev/null
+++ b/regress/roff/ig/cond0.in
@@ -0,0 +1,17 @@
+.\" Copyright (c) 1991, 1992, 1993, 1994 Free Software Foundation -*-Text-*-
+.\" See section COPYING for conditions for redistribution
+.\"
+.\" Set up \*(lq, \*(rq if -man hasn't already set it up.
+.Dd $Mdocdate: May 17 2010 $
+.Dt FOO 1
+.Os
+.Sh NAME
+.Nm foo
+.Nd bar
+.Sh DESCRIPTION
+garglebats!
+.if t \
+.ig .
+foo
+..
+bar
diff --git a/regress/roff/ig/override0.in b/regress/roff/ig/override0.in
new file mode 100644
index 00000000..69af76ed
--- /dev/null
+++ b/regress/roff/ig/override0.in
@@ -0,0 +1,16 @@
+.\" Copyright (c) 1991, 1992, 1993, 1994 Free Software Foundation -*-Text-*-
+.\" See section COPYING for conditions for redistribution
+.\"
+.\" Set up \*(lq, \*(rq if -man hasn't already set it up.
+.Dd $Mdocdate: May 17 2010 $
+.Dt FOO 1
+.Os
+.Sh NAME
+.Nm foo
+.Nd bar
+.Sh DESCRIPTION
+garglebats!
+.ig .
+foo
+..
+bar