=================================================================== RCS file: /cvs/mandoc/mdoc_term.c,v retrieving revision 1.347 retrieving revision 1.348 diff -u -p -r1.347 -r1.348 --- mandoc/mdoc_term.c 2017/04/14 18:25:04 1.347 +++ mandoc/mdoc_term.c 2017/04/14 19:35:22 1.348 @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.347 2017/04/14 18:25:04 schwarze Exp $ */ +/* $Id: mdoc_term.c,v 1.348 2017/04/14 19:35:22 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2012-2017 Ingo Schwarze @@ -1993,6 +1993,7 @@ static int termp_lk_pre(DECL_ARGS) { const struct roff_node *link, *descr; + int display; if (NULL == (link = n->child)) return 0; @@ -2008,9 +2009,18 @@ termp_lk_pre(DECL_ARGS) term_word(p, ":"); } + display = term_strlen(p, link->string) >= 26; + if (display) { + term_newln(p); + p->offset += term_len(p, p->defindent + 1); + } + term_fontpush(p, TERMFONT_BOLD); term_word(p, link->string); term_fontpop(p); + + if (display) + term_newln(p); return 0; }