From nobody Sat Feb 12 16:07:18 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D47DC195F928; Sat, 12 Feb 2022 16:07:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JwwNl1Y5xz4g3Y; Sat, 12 Feb 2022 16:07:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644682039; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZIb5N+FAy0Hd/aOijpD0AzyIzx+Iat1J6IvGmFlD3ts=; b=TmMzp2CoQz1MR1mrLCsNoSy0OjQIgBn28ve4D7ycTbgOuCaAuSbEG8YQZYzlyzSVQO5Qxc 8bJu3SyXiqDMNbQDLUGhIw8WGm7FbfqwNog0vfJfoZ5CwaaPu0L4Lp0+JSZ/5oYQActdUd YCoWHzCpHFx9TAEANK1Uc8egcPSNa+PbZJ4KEHw7GXsxlrk1TcrWJOlNZ4hto5zu6Ve8aZ iyITTMup6fxsHh1pkhNYBqOgSm8D53IGX8FyjvwlAW0IyWFTULC/SHhUFP6NwNeAbjA4HL 7oFuuYptzbBoFX4QZ2ihwO05YEqgecC58botU//ljD15JSxzVbR5QZR5y7KZkA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DE63C2A25; Sat, 12 Feb 2022 16:07:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21CG7ImZ087937; Sat, 12 Feb 2022 16:07:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21CG7IJV087936; Sat, 12 Feb 2022 16:07:18 GMT (envelope-from git) Date: Sat, 12 Feb 2022 16:07:18 GMT Message-Id: <202202121607.21CG7IJV087936@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: 5ae48f972aa6 - stable/13 - style.mdoc.5: Document the conventions for -width List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: 0mp X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 5ae48f972aa618483d8dd1090f19c8aad149e09d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644682039; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZIb5N+FAy0Hd/aOijpD0AzyIzx+Iat1J6IvGmFlD3ts=; b=XUbib5WVE6zd58zB/TKglrT6M7duTAwt7tCWV7gvQQnPzQuVhGRGbWDgjW/Dvqw1DfW+wp SQUGsHmP/JLDiVKsx2NoTL/SwSrmbloEQc0VIExeyC0euKZvyoR36YBNyqHAAiV5oBgfie bT/Cf9xj1+GqnvdTxMQEFIgHtRz5qy+Q7oqfeH+JV326TPhbKu2Umttq3iHxP5d602j3JG TmvQN0HqQEId8x4OtQhMK3kxnSn490QoIRHyBTsT/irQT7vuL168FEWMUfFT0SL/z3vzAC 1r9UzrUB5eiHyHo/aAWjPKyVm1GmWXFqsBwdusXZa1V3JeemZpm1l/6cJwe4yw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644682039; a=rsa-sha256; cv=none; b=Q9LEJ8hyAvX1STbw+LoSp084VT8sMFpjA7X1IfBcu8t57ZY+FkvBlGChQAqfphZENOCeUq GTogCKpJkBn7HQepiaBfA2VQe95PJykB9oC22yjXSNYc+ZOs8ii6CgFF/3boxHHb2GjRq2 MnSi2GEZsKSUTdQctue7Z952VTklBUNYGnD/DVwvg83A47dMuQNpTazwG/5WfiC9CFg/pC UfQNZuJay6qvM2QxDKhK2jCWPvcJgNKjWRkOYsgcHg+wwBK5xajk6jkpqsIArj+0ZiCeRz dFbvOvMySUEX0ulKN9v8XJ9B9uvL9hobntiQRvDjMoMJ6/8lBk+lsouJMajQ1w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by 0mp (doc, ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=5ae48f972aa618483d8dd1090f19c8aad149e09d commit 5ae48f972aa618483d8dd1090f19c8aad149e09d Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2022-01-29 21:23:49 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2022-02-12 16:07:08 +0000 style.mdoc.5: Document the conventions for -width Reviewed by: debdrup MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D33394 (cherry picked from commit 79afae3b3f245ffa79726ae097cc843628ae9d92) --- share/man/man5/style.mdoc.5 | 40 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/share/man/man5/style.mdoc.5 b/share/man/man5/style.mdoc.5 index f8ad4fb4029b..81f10b9df845 100644 --- a/share/man/man5/style.mdoc.5 +++ b/share/man/man5/style.mdoc.5 @@ -1,7 +1,7 @@ .\" .\" SPDX-License-Identifier: BSD-2-Clause-FreeBSD .\" -.\" Copyright (c) 2018-2021 Mateusz Piotrowski <0mp@FreeBSD.org> +.\" Copyright (c) 2018-2022 Mateusz Piotrowski <0mp@FreeBSD.org> .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions @@ -26,7 +26,7 @@ .\" .\" $FreeBSD$ .\" -.Dd December 3, 2021 +.Dd January 29, 2022 .Dt STYLE.MDOC 5 .Os .Sh NAME @@ -121,6 +121,42 @@ It is good to know this command. .El .Ed .El +.Ss Lists +.Bl -dash -width "" +.It +The +.Fl width +argument to the +.Sy \&.Bl +macro should match the length of the longest item in the list, e.g.: +.Bd -literal -offset indent +\&.Bl -tag -width "-a address" +\&.It Fl a Ar address +Set the address. +\&.It Fl v +Print the version. +\&.El +.Ed +.Pp +In case the longest item is too long and hurts readability, +the recommendation is to set +the +.Fl width +argument +to +.Ql indent , +e.g.: +.Bd -literal -offset indent +\&.Bl -tag -width "indent" +\&.It Cm build +Build the port. +\&.It Cm install +Install the port. +\&.It Fl install-missing-packages +Install the missing packages. +\&.El +.Ed +.El .Ss Synopsis Formatting .Bl -dash -width "" .It