summaryrefslogtreecommitdiffstatshomepage
path: root/man_term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-06-16 19:55:28 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-06-16 19:55:28 +0000
commit779cfd652ca006f1e2598aba37976bc9e022ac11 (patch)
tree9e664d074f0a23b507be5be82c55686e8dcb83bc /man_term.c
parenta7f2dc1d0e14e61727a4abdb0250b39e016e0705 (diff)
downloadmandoc-779cfd652ca006f1e2598aba37976bc9e022ac11.tar.gz
mandoc-779cfd652ca006f1e2598aba37976bc9e022ac11.tar.zst
mandoc-779cfd652ca006f1e2598aba37976bc9e022ac11.zip
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.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/man_term.c b/man_term.c
index b07602d3..c832c9f7 100644
--- a/man_term.c
+++ b/man_term.c
@@ -1,4 +1,4 @@
-/* $Id: man_term.c,v 1.13 2009/06/15 20:26:47 kristaps Exp $ */
+/* $Id: man_term.c,v 1.14 2009/06/16 19:55:28 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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);