diff options
author | 2013-12-25 00:39:31 +0000 | |
---|---|---|
committer | 2013-12-25 00:39:31 +0000 | |
commit | 50aba90c460f529396e34797ccd6363e0f246c9c (patch) | |
tree | 349f08a9fffc24cd8092cc06d4f4804b22ff50a1 /mdoc_term.c | |
parent | 319dd615ecf9bfbb4f80d4a40c14cfa67f905b04 (diff) | |
download | mandoc-50aba90c460f529396e34797ccd6363e0f246c9c.tar.gz mandoc-50aba90c460f529396e34797ccd6363e0f246c9c.tar.zst mandoc-50aba90c460f529396e34797ccd6363e0f246c9c.zip |
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.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mdoc_term.c b/mdoc_term.c index 04fede10..00a6595e 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.254 2013/12/24 23:04:36 schwarze Exp $ */ +/* $Id: mdoc_term.c,v 1.255 2013/12/25 00:39:31 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2012, 2013 Ingo Schwarze <schwarze@openbsd.org> @@ -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); |