summaryrefslogtreecommitdiffstatshomepage
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
commit0a0adafcdad00a607e52e6644b018e6d26bcc1db (patch)
treefa1e536d8e398189daabcb222d367c5aef501163 /term.c
parent292265c8f2bd4928a2895544f1f3017c1463d750 (diff)
downloadmandoc-0a0adafcdad00a607e52e6644b018e6d26bcc1db.tar.gz
mandoc-0a0adafcdad00a607e52e6644b018e6d26bcc1db.tar.zst
mandoc-0a0adafcdad00a607e52e6644b018e6d26bcc1db.zip
Freed more macros from zero-length restrictions.
Fixed `Fn' spacing.
Diffstat (limited to 'term.c')
-rw-r--r--term.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/term.c b/term.c
index 18067505..2ec2390b 100644
--- a/term.c
+++ b/term.c
@@ -1,4 +1,4 @@
-/* $Id: term.c,v 1.66 2009/03/21 13:26:30 kristaps Exp $ */
+/* $Id: term.c,v 1.67 2009/03/21 13:47:02 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
@@ -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);