diff options
-rw-r--r-- | mdoc.7 | 7 | ||||
-rw-r--r-- | mdoc_term.c | 5 |
2 files changed, 8 insertions, 4 deletions
@@ -1,4 +1,4 @@ -.\" $Id: mdoc.7,v 1.40 2009/07/12 16:34:16 kristaps Exp $ +.\" $Id: mdoc.7,v 1.41 2009/07/12 19:34:51 kristaps Exp $ .\" .\" Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se> .\" @@ -580,6 +580,11 @@ If an special-character control character is escaped .Sq \e\e , it will obviously not render the subsequent sequence. Even newer versions of groff seem to dither on this. +.\" LIST-ITEM +.It +In groff, the +.Sq \&.Fo +macro only produces the first parameter. This is no longer the case. .El .\" SECTION .Sh SEE ALSO diff --git a/mdoc_term.c b/mdoc_term.c index 7fb24be3..d8290735 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.32 2009/07/12 19:28:46 kristaps Exp $ */ +/* $Id: mdoc_term.c,v 1.33 2009/07/12 19:34:51 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -1941,14 +1941,13 @@ termp_fo_pre(DECL_ARGS) const struct mdoc_node *n; if (MDOC_BODY == node->type) { + p->flags |= TERMP_NOSPACE; term_word(p, "("); p->flags |= TERMP_NOSPACE; return(1); } else if (MDOC_HEAD != node->type) return(1); - /* XXX - groff shows only first parameter */ - p->flags |= ttypes[TTYPE_FUNC_NAME]; for (n = node->child; n; n = n->next) { assert(MDOC_TEXT == n->type); |