help / color / mirror / Atom feed
From: наб <nabijaczleweli@nabijaczleweli.xyz>
To: discuss@mandoc.bsd.lv
Subject: Punctuation after bare .%B still italic, contrary to groff
Date: Tue, 13 Sep 2022 13:44:30 +0200	[thread overview]
Message-ID: <20220913114430.ue7wne7wvgdqt63c@tarta.nabijaczleweli.xyz> (raw)

[-- Attachment #1: Type: text/plain, Size: 1654 bytes --]


-- >8 --
.Dt STTY 1
.Xr intr II
.%B "UNIX Programmer's Manual" ,
p. 122)
-- >8 --

groff yields:
-- >8 --
     intr(II) (_\bU_\bN_\bI_\bX _\bP_\br_\bo_\bg_\br_\ba_\bm_\bm_\be_\br_\b'_\bs _\bM_\ba_\bn_\bu_\ba_\bl, p. 122)
-- >8 --

mandoc (current CVS, end-of-May CVS, Debian 1.14.5-1) yields:
-- >8 --
     intr(II) (_\bU_\bN_\bI_\bX _\bP_\br_\bo_\bg_\br_\ba_\bm_\bm_\be_\br_\b'_\bs _\bM_\ba_\bn_\bu_\ba_\bl_\b, p. 122)
-- >8 --
and the same happens in -Thtml:
-- >8 --
<h2 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h2>
<p class="Pp"><a class="Xr" aria-label="intr, section II">intr(II)</a>
    (<i class="RsB">UNIX Programmer's Manual,</i> p. 122)</p>
-- >8 --

The same happens if the ""s wrapping the title are removed.

Oddly, the punctuation is correctly welded to the text,
but the font sticks?

A perusal of the TODO shows this item:
-- >8 --
- .%T can have trailing punctuation.  Currently, it puts the trailing
  punctuation into a trailing MDOC_TEXT element inside its own scope.
  That element should rather be outside its scope, such that the
  punctuation does not get underlines.  This is not trivial to
  implement because .%T then needs some features of in_line_eoln() -
  slurp all arguments into one single text element - and one feature
  of in_line() - put trailing punctuation out of scope.
  Found in mount_nfs(8) and exports(5), search for "Appendix".
  loc **  exist **  algo ***  size *  imp **
-- >8 --
which appears related, but for %T, not %B.


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

                 reply	other threads:[~2022-09-13 11:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220913114430.ue7wne7wvgdqt63c@tarta.nabijaczleweli.xyz \
    --to=nabijaczleweli@nabijaczleweli.xyz \
    --cc=discuss@mandoc.bsd.lv \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).