summaryrefslogtreecommitdiffstats
path: root/regress/roff
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
commit218a7feb401f88a33b42705d4480f2b85b9044d5 (patch)
tree1a5c7508cb015bdae317cdd3594c23ed14d4032a /regress/roff
parent524dc4dbf98fb75004063063e8aa6cefab73cfc7 (diff)
downloadmandoc-218a7feb401f88a33b42705d4480f2b85b9044d5.tar.gz
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/roff')
-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..63b25c5c
--- /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$
+.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..65f7bf6c
--- /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$
+.Dt FOO 1
+.Os
+.Sh NAME
+.Nm foo
+.Nd bar
+.Sh DESCRIPTION
+garglebats!
+.ig .
+foo
+..
+bar