summaryrefslogtreecommitdiffstats
path: root/mdoc_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-12-25 00:39:31 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-12-25 00:39:31 +0000
commitae3f51d742a1c36dd2092d91c57e3885d28a21f5 (patch)
tree743265550f2e5411f8f89f8d493d55658fe50acc /mdoc_term.c
parent4502d03c03ab81e38efc29a83958d57f9d2a3a36 (diff)
downloadmandoc-ae3f51d742a1c36dd2092d91c57e3885d28a21f5.tar.gz
Do not break output lines in .Fn function arguments in SYNOPSIS mode.
Following an idea from Franco Fichtner, but implemented more cleanly. This reduces groff-mandoc-differences in OpenBSD base by a fantastic 7.5%.
Diffstat (limited to 'mdoc_term.c')
-rw-r--r--mdoc_term.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index e0f14456..a68a4698 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -1564,6 +1564,8 @@ termp_fn_pre(DECL_ARGS)
for (n = n->next; n; n = n->next) {
assert(MDOC_TEXT == n->type);
term_fontpush(p, TERMFONT_UNDER);
+ if (pretty)
+ p->flags |= TERMP_NBRWORD;
term_word(p, n->string);
term_fontpop(p);