aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-07-12 19:34:51 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-07-12 19:34:51 +0000
commit08bcf12c6b903e4d22a5862ab62f653ab5b5bdb0 (patch)
tree4a3b99e3f3a3ee288f121875ec2c0e307cffce76
parent0d6441e0b3a430bc7872d4a273aac79e82102b10 (diff)
downloadmandoc-08bcf12c6b903e4d22a5862ab62f653ab5b5bdb0.tar.gz
mandoc-08bcf12c6b903e4d22a5862ab62f653ab5b5bdb0.tar.zst
mandoc-08bcf12c6b903e4d22a5862ab62f653ab5b5bdb0.zip
Fixed `Fo' superfluous space before `('. Noted groff compatibility in mdoc.7.
-rw-r--r--mdoc.77
-rw-r--r--mdoc_term.c5
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 <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);