diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-01-13 05:23:18 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-01-13 05:23:18 +0000 |
commit | 886ae5c2d18775608683ff2241fb58ed9dbcbcf7 (patch) | |
tree | 384e91cca5499ff9d17cb5068456864b8854bf68 /mdoc_man.c | |
parent | f29c2240186d1496056cff6214df9e3bf35d00eb (diff) | |
download | mandoc-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_man.c')
-rw-r--r-- | mdoc_man.c | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -1,4 +1,4 @@ -/* $Id: mdoc_man.c,v 1.122 2017/06/14 22:51:25 schwarze Exp $ */ +/* $Id: mdoc_man.c,v 1.123 2018/01/13 05:23:18 schwarze Exp $ */ /* * Copyright (c) 2011-2017 Ingo Schwarze <schwarze@openbsd.org> * @@ -1547,7 +1547,6 @@ static int pre_lk(DECL_ARGS) { const struct roff_node *link, *descr, *punct; - int display; if ((link = n->child) == NULL) return 0; @@ -1570,12 +1569,6 @@ pre_lk(DECL_ARGS) } /* Link target. */ - display = man_strlen(link->string) >= 26; - if (display) { - print_line(".RS", MMAN_Bk_susp); - print_word("6n"); - outflags |= MMAN_nl; - } font_push('B'); print_word(link->string); font_pop(); @@ -1585,8 +1578,6 @@ pre_lk(DECL_ARGS) print_word(punct->string); punct = punct->next; } - if (display) - print_line(".RE", MMAN_nl); return 0; } |