From 08bcf12c6b903e4d22a5862ab62f653ab5b5bdb0 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sun, 12 Jul 2009 19:34:51 +0000 Subject: Fixed `Fo' superfluous space before `('. Noted groff compatibility in mdoc.7. --- mdoc.7 | 7 ++++++- mdoc_term.c | 5 ++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/mdoc.7 b/mdoc.7 index 8ea0aad1..a7df1cb9 100644 --- a/mdoc.7 +++ b/mdoc.7 @@ -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 .\" @@ -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 * @@ -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); -- cgit v1.2.3-56-ge451