diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-16 19:55:28 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-16 19:55:28 +0000 |
commit | 9926ea89c1f7a785e750b0118b7b4ed73b4fd2d0 (patch) | |
tree | dbad9a35492afb007b8ff5e3ad1416ed1e8ed989 /man_term.c | |
parent | a2605b913e645cce238389093dfa9d10cbcf7236 (diff) | |
download | mandoc-9926ea89c1f7a785e750b0118b7b4ed73b4fd2d0.tar.gz |
Removed MAN___: moved MAN_br to its index (comments not passed into parser).
Fix: hashtable not fully formed after removal of MDOC___.
Diffstat (limited to 'man_term.c')
-rw-r--r-- | man_term.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -57,7 +57,7 @@ static void post_SH(DECL_ARGS); static void post_SS(DECL_ARGS); static const struct termact termacts[MAN_MAX] = { - { NULL, NULL }, /* __ */ + { pre_PP, NULL }, /* br */ { NULL, NULL }, /* TH */ { pre_SH, post_SH }, /* SH */ { pre_SS, post_SS }, /* SS */ @@ -78,7 +78,6 @@ static const struct termact termacts[MAN_MAX] = { { pre_I, post_I }, /* I */ { pre_IR, NULL }, /* IR */ { pre_RI, NULL }, /* RI */ - { pre_PP, NULL }, /* br */ { NULL, NULL }, /* na */ { pre_I, post_I }, /* i */ }; @@ -97,7 +96,10 @@ man_run(struct termp *p, const struct man *m) print_head(p, man_meta(m)); p->flags |= TERMP_NOSPACE; - print_body(p, man_node(m), man_meta(m)); + assert(man_node(m)); + assert(MAN_ROOT == man_node(m)->type); + if (man_node(m)->child) + print_body(p, man_node(m)->child, man_meta(m)); print_foot(p, man_meta(m)); return(1); |