Page MenuHomeFreeBSD

style.mdoc.5: Document the conventions for -width
ClosedPublic

Authored by 0mp on Dec 12 2021, 10:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 15, 1:25 AM
Unknown Object (File)
Thu, Nov 14, 10:11 PM
Unknown Object (File)
Wed, Oct 23, 9:27 PM
Unknown Object (File)
Sep 16 2024, 12:17 PM
Unknown Object (File)
Sep 15 2024, 10:50 PM
Unknown Object (File)
Sep 15 2024, 10:50 PM
Unknown Object (File)
Sep 15 2024, 10:50 PM
Unknown Object (File)
Sep 10 2024, 5:20 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

0mp requested review of this revision.Dec 12 2021, 10:44 PM

Perhaps it would be nice to mention that sometimes the best idea is to set -width to the longest item "of reasonable length" (less than 10 characters?).

This revision is now accepted and ready to land.Dec 12 2021, 11:39 PM
In D33394#755020, @0mp wrote:

Perhaps it would be nice to mention that sometimes the best idea is to set -width to the longest item "of reasonable length" (less than 10 characters?).

Isn't there also an intersection regarding the 80 columns thing, since manual pages live in the src tree?

bjk added inline comments.
share/man/man5/style.mdoc.5
131

Should we note that when replicating the "longest item in the list" as the -width argument, macros should be excluded?

In D33394#755020, @0mp wrote:

Perhaps it would be nice to mention that sometimes the best idea is to set -width to the longest item "of reasonable length" (less than 10 characters?).

Isn't there also an intersection regarding the 80 columns thing, since manual pages live in the src tree?

Potentially. I'm not sure how to make this connection though in the manual page...

share/man/man5/style.mdoc.5
131

This is a nice idea. In a way, it's implicitly suggested in line 133 \&.Bl -tag -width "-a address". But perhaps we can add an explicit note about this convention.

Thanks a lot for reviewing the change!