diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-04-17 12:53:29 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-04-17 12:53:29 +0000 |
commit | cb9be671cf6346f9dd06b4901b4a89e2f6c67934 (patch) | |
tree | 2ae762cef23f1d7bb316700ef15054a019cd5683 /mdoc_macro.c | |
parent | 9fa2ec46cdd419a9476abc763c485548e4d59d66 (diff) | |
download | mandoc-cb9be671cf6346f9dd06b4901b4a89e2f6c67934.tar.gz |
Fix handling of trailing punctuation in .Lk.
This macro is unusual in so far as trailing punction needs to remain
inside the scope because it must be inside, not after the display
of long URIs in terminal output mode.
Improves formatting of fw_update(1), help(1), less(1), sendbug(1),
acx(4), inet6(4), ipsec(4), oce(4), isakmpd.conf(5), afterboot(8),
release(8), traceroute(8).
Diffstat (limited to 'mdoc_macro.c')
-rw-r--r-- | mdoc_macro.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c index f6634b62..73d0ad79 100644 --- a/mdoc_macro.c +++ b/mdoc_macro.c @@ -903,8 +903,10 @@ in_line(MACRO_PROT_ARGS) } } - if (scope) + if (scope && tok != MDOC_Lk) { rew_elem(mdoc, tok); + scope = 0; + } /* * If no elements have been collected and we're allowed to have @@ -924,6 +926,8 @@ in_line(MACRO_PROT_ARGS) } if (nl) append_delims(mdoc, line, pos, buf); + if (scope) + rew_elem(mdoc, tok); } static void |