aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-01-13 05:23:18 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-01-13 05:23:18 +0000
commit886ae5c2d18775608683ff2241fb58ed9dbcbcf7 (patch)
tree384e91cca5499ff9d17cb5068456864b8854bf68 /mdoc_term.c
parentf29c2240186d1496056cff6214df9e3bf35d00eb (diff)
downloadmandoc-886ae5c2d18775608683ff2241fb58ed9dbcbcf7.tar.gz
mandoc-886ae5c2d18775608683ff2241fb58ed9dbcbcf7.tar.zst
mandoc-886ae5c2d18775608683ff2241fb58ed9dbcbcf7.zip
Remove the implicit display feature of .Lk because it was inconsistent
across output devices, counter-intuitive, and resulted in ugly output for many real-world manual pages. Always format even long links in-line. I already committed a similar change to groff. OK jmc@, bentley@, and the original author of the feature, Werner Lemberg <wl@gnu.org>.
Diffstat (limited to 'mdoc_term.c')
-rw-r--r--mdoc_term.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index 4e420c5c..d2983b0e 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_term.c,v 1.364 2017/06/14 17:51:15 schwarze Exp $ */
+/* $Id: mdoc_term.c,v 1.365 2018/01/13 05:23:18 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2012-2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -1940,7 +1940,6 @@ static int
termp_lk_pre(DECL_ARGS)
{
const struct roff_node *link, *descr, *punct;
- int display;
if ((link = n->child) == NULL)
return 0;
@@ -1966,11 +1965,6 @@ termp_lk_pre(DECL_ARGS)
}
/* Link target. */
- display = term_strlen(p, link->string) >= 26;
- if (display) {
- term_newln(p);
- p->tcol->offset += term_len(p, p->defindent + 1);
- }
term_fontpush(p, TERMFONT_BOLD);
term_word(p, link->string);
term_fontpop(p);
@@ -1981,8 +1975,6 @@ termp_lk_pre(DECL_ARGS)
term_word(p, punct->string);
punct = punct->next;
}
- if (display)
- term_newln(p);
return 0;
}