From: Alejandro Colomar <alx@kernel.org>
To: "G. Branden Robinson" <g.branden.robinson@gmail.com>
Cc: linux-man <linux-man@vger.kernel.org>
Subject: Re: .sp 1 in strerror.3 (and probably more pages)
Date: Sun, 13 Aug 2023 18:06:15 +0200 [thread overview]
Message-ID: <60420364-2a68-a6b8-d7ca-7fe6a1384d64@kernel.org> (raw)
In-Reply-To: <20230813152806.sgbftjs6nqgjjcoy@illithid>
[-- Attachment #1.1: Type: text/plain, Size: 1843 bytes --]
Hi Branden,
On 2023-08-13 17:28, G. Branden Robinson wrote:
> Hi Alex,
>
> At 2023-08-13T17:19:59+0200, Alejandro Colomar wrote:
>> While trying to apply a patch that touches some table, I found an '.sp
>> 1' after a table.
>>
>> I tried removing it to see what it does, but it seems nothing changed.
>>
>> However, in the PDF version, there's some change (using .sp 1 produces
>> a larger space before the next section heading).
>>
>> Should we keep that thing, should we replace it by something else, or
>> should we remove it?
>
> I would take it out.
Okay. But I'd like to understand why Michael used it. Since we already
have a blank without it, why would have he added it? Or did 1.22.4 have
a bug that didn't produce that blank?
Here's what Michael's commit says:
# ".sp 1" ==> ensure a blank line before the next section heading
(c466875ecd64 ("Various pages: Improve formatting in ATTRIBUTES"))
> If you need vertical space after a table, use a
> paragraphing macro.
>
> The reason for the difference is this.
>
> groff_man(7):
>
> Horizontal and vertical spacing
> [...]
> Several macros insert vertical space: .SH, .SS, .TP, .P (and its
> synonyms), .IP, and the deprecated .HP. The default inter‐section
> and inter‐paragraph spacing is is 1v for terminal devices and 0.4v
> for typesetting devices. (The deprecated macro .PD can change this
> vertical spacing, but its use is discouraged.) Between .EX and .EE
> calls, the inter‐paragraph spacing is 1v regardless of output
> device.
>
> Does this help?
Yep, it explains the difference, although it doesn't explain why Michael
added it.
Cheers,
Alex
--
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2023-08-13 16:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-13 15:19 .sp 1 in strerror.3 (and probably more pages) Alejandro Colomar
2023-08-13 15:28 ` G. Branden Robinson
2023-08-13 16:06 ` Alejandro Colomar [this message]
2023-08-13 16:20 ` G. Branden Robinson
2023-08-13 20:00 ` Alejandro Colomar
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=60420364-2a68-a6b8-d7ca-7fe6a1384d64@kernel.org \
--to=alx@kernel.org \
--cc=g.branden.robinson@gmail.com \
--cc=linux-man@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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