summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-21 13:47:02 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-21 13:47:02 +0000
commitb032e56868d3030613d6760a5eff908e2776ee36 (patch)
tree1862913ae26ce62b3c66d99094f645134e52189f /term.c
parentef888a08d47230dfb47dcd8c4d2c2b7a0387181e (diff)
downloadmandoc-b032e56868d3030613d6760a5eff908e2776ee36.tar.gz
Freed more macros from zero-length restrictions.
Fixed `Fn' spacing.
Diffstat (limited to 'term.c')
-rw-r--r--term.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/term.c b/term.c
index 0e97abc1..3d1db05a 100644
--- a/term.c
+++ b/term.c
@@ -1171,9 +1171,9 @@ termp_fn_pre(DECL_ARGS)
term_word(p, node->child->string);
p->flags &= ~ttypes[TTYPE_FUNC_NAME];
+ p->flags |= TERMP_NOSPACE;
term_word(p, "(");
- p->flags |= TERMP_NOSPACE;
for (n = node->child->next; n; n = n->next) {
p->flags |= ttypes[TTYPE_FUNC_ARG];
term_word(p, n->string);
@@ -1231,7 +1231,7 @@ termp_fa_pre(DECL_ARGS)
term_word(p, ",");
}
- if (node->next && node->next->tok == MDOC_Fa)
+ if (node->child && node->next && node->next->tok == MDOC_Fa)
term_word(p, ",");
return(0);