summaryrefslogtreecommitdiffstats
path: root/tree.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-01-01 12:56:12 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-01-01 12:56:12 +0000
commit98371213a082f1d2d7f5faac716b9818680d3140 (patch)
tree90725c19edf85e6b5b1d39a925dade5954465f72 /tree.c
parente544ee7c50ee6f579859cf0983518ab73f11cac1 (diff)
downloadmandoc-98371213a082f1d2d7f5faac716b9818680d3140.tar.gz
Add basic -Ttree support for tables.
Diffstat (limited to 'tree.c')
-rw-r--r--tree.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/tree.c b/tree.c
index f8d433db..9eee5535 100644
--- a/tree.c
+++ b/tree.c
@@ -88,6 +88,9 @@ print_mdoc(const struct mdoc_node *n, int indent)
case (MDOC_TEXT):
t = "text";
break;
+ case (MDOC_TBL):
+ t = "tbl";
+ break;
default:
abort();
/* NOTREACHED */
@@ -120,6 +123,9 @@ print_mdoc(const struct mdoc_node *n, int indent)
argc = n->args->argc;
}
break;
+ case (MDOC_TBL):
+ p = "tbl";
+ break;
case (MDOC_ROOT):
p = "root";
break;
@@ -179,6 +185,9 @@ print_man(const struct man_node *n, int indent)
case (MAN_BODY):
t = "block-body";
break;
+ case (MAN_TBL):
+ t = "tbl";
+ break;
default:
abort();
/* NOTREACHED */
@@ -200,6 +209,9 @@ print_man(const struct man_node *n, int indent)
case (MAN_ROOT):
p = "root";
break;
+ case (MAN_TBL):
+ p = "tbl";
+ break;
default:
abort();
/* NOTREACHED */