diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-02-06 21:44:36 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-02-06 21:44:36 +0000 |
commit | da98c7539daf0f47de95ebfe6c514b48047dcea0 (patch) | |
tree | b4f7ba288e2a85dd1e7115c14a8e0a8f58f8ba30 /tree.c | |
parent | 858bb68c9059fe5b8f8f613dab2761233ff36ba7 (diff) | |
download | mandoc-da98c7539daf0f47de95ebfe6c514b48047dcea0.tar.gz |
Add initial libmdoc and libman top-most machinery for accepting TBL
directives. For now this will just ignore them (except for -Ttree,
which just notes that an EQN's been accepted).
Diffstat (limited to 'tree.c')
-rw-r--r-- | tree.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -92,6 +92,9 @@ print_mdoc(const struct mdoc_node *n, int indent) case (MDOC_TBL): t = "tbl"; break; + case (MDOC_EQN): + t = "eqn"; + break; default: abort(); /* NOTREACHED */ @@ -128,6 +131,9 @@ print_mdoc(const struct mdoc_node *n, int indent) break; case (MDOC_TBL): break; + case (MDOC_EQN): + p = "eqn"; + break; case (MDOC_ROOT): p = "root"; break; @@ -198,6 +204,9 @@ print_man(const struct man_node *n, int indent) case (MAN_TBL): t = "tbl"; break; + case (MAN_EQN): + t = "eqn"; + break; default: abort(); /* NOTREACHED */ @@ -223,6 +232,9 @@ print_man(const struct man_node *n, int indent) break; case (MAN_TBL): break; + case (MAN_EQN): + p = "eqn"; + break; default: abort(); /* NOTREACHED */ |