From: Markus Armbruster <armbru@redhat.com>
To: Andrea Bolognani <abologna@redhat.com>
Cc: "Eduardo Habkost" <eduardo@habkost.net>,
"Kevin Wolf" <kwolf@redhat.com>,
"Vladimir Sementsov-Ogievskiy" <v.sementsov-og@mail.ru>,
"Daniel P. Berrangé" <berrange@redhat.com>,
qemu-block@nongnu.org, "Juan Quintela" <quintela@redhat.com>,
"Eric Blake" <eblake@redhat.com>,
"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
qemu-devel@nongnu.org, "Yanan Wang" <wangyanan55@huawei.com>,
"Gerd Hoffmann" <kraxel@redhat.com>,
"Pavel Dovgalyuk" <pavel.dovgaluk@ispras.ru>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"John Snow" <jsnow@redhat.com>,
"Philippe Mathieu-Daudé" <f4bug@amsat.org>
Subject: Re: [PATCH 6/7] qapi: Drop unnecessary horizontal spacing in comments
Date: Mon, 02 May 2022 10:50:07 +0200 [thread overview]
Message-ID: <874k28s4hs.fsf@pond.sub.org> (raw)
In-Reply-To: <20220429154758.354610-7-abologna@redhat.com> (Andrea Bolognani's message of "Fri, 29 Apr 2022 17:47:57 +0200")
Andrea Bolognani <abologna@redhat.com> writes:
> Care was taken not to break vertical alignment.
>
> Signed-off-by: Andrea Bolognani <abologna@redhat.com>
> ---
> qapi/block-core.json | 62 +++++++++++++++++++++---------------------
> qapi/block-export.json | 2 +-
> qapi/block.json | 2 +-
> qapi/char.json | 2 +-
> qapi/control.json | 10 +++----
> qapi/crypto.json | 44 +++++++++++++++---------------
> qapi/dump.json | 4 +--
> qapi/machine.json | 8 +++---
> qapi/misc-target.json | 6 ++--
> qapi/misc.json | 6 ++--
> qapi/run-state.json | 4 +--
> qapi/sockets.json | 6 ++--
> qapi/ui.json | 18 ++++++------
> 13 files changed, 87 insertions(+), 87 deletions(-)
>
> diff --git a/qapi/block-core.json b/qapi/block-core.json
> index 2bce5bb0ae..5fd66ea676 100644
> --- a/qapi/block-core.json
> +++ b/qapi/block-core.json
> @@ -337,9 +337,9 @@
> #
> # Cache mode information for a block device
> #
> -# @writeback: true if writeback mode is enabled
> -# @direct: true if the host page cache is bypassed (O_DIRECT)
> -# @no-flush: true if flush requests are ignored for the device
> +# @writeback: true if writeback mode is enabled
> +# @direct: true if the host page cache is bypassed (O_DIRECT)
> +# @no-flush: true if flush requests are ignored for the device
I'm no fan of horizontally aligning descriptions, because when you add a
longer name, you either realign (I hate the churn) or live with the
inconsistency (I hate that, too).
For what it's worth, the example in docs/devel/qapi-code-gen.rst does
not align.
I doubt changing to a different alignment now is useful. The next
patch, however, drops the alignment entirely. Possibly useful.
Thoughts?
> #
> # Since: 2.3
> ##
> @@ -604,7 +604,7 @@
> # @inserted: @BlockDeviceInfo describing the device if media is
> # present
> #
> -# Since: 0.14
> +# Since: 0.14
This one is TAG: TEXT, whereas the one above is a multiple @NAME:
DESCRIPTION. Extra space in the latter can provide alignment. Extra
space in the former is always redundant. I'd take a patch dropping
these obviously redundant spaces without debate :)
[...]
next prev parent reply other threads:[~2022-05-02 8:52 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-29 15:47 [PATCH 0/7] qapi: Primarily whitespace tweaks Andrea Bolognani
2022-04-29 15:47 ` [PATCH 1/7] qapi: Drop stray trailing symbol Andrea Bolognani
2022-05-02 8:22 ` Markus Armbruster
2022-04-29 15:47 ` [PATCH 2/7] qapi: Fix comment indentation Andrea Bolognani
2022-05-02 8:22 ` Markus Armbruster
2022-04-29 15:47 ` [PATCH 3/7] qapi: Add missing separators between sections Andrea Bolognani
2022-05-02 8:24 ` Markus Armbruster
2022-04-29 15:47 ` [PATCH 4/7] qapi: Drop unnecessary empty lines in comments Andrea Bolognani
2022-05-02 8:24 ` Markus Armbruster
2022-04-29 15:47 ` [PATCH 5/7] qapi: Drop unnecessary empty lines outside of comments Andrea Bolognani
2022-05-02 8:30 ` Markus Armbruster
2022-04-29 15:47 ` [PATCH 6/7] qapi: Drop unnecessary horizontal spacing in comments Andrea Bolognani
2022-05-02 8:50 ` Markus Armbruster [this message]
2022-05-02 14:34 ` Andrea Bolognani
2022-05-02 17:24 ` Markus Armbruster
2022-05-03 7:43 ` Andrea Bolognani
2022-04-29 15:47 ` [PATCH 7/7] qapi: Drop more " Andrea Bolognani
2022-05-02 12:43 ` [PATCH 0/7] qapi: Primarily whitespace tweaks Markus Armbruster
2022-05-02 14:36 ` Andrea Bolognani
2022-05-02 17:28 ` Markus Armbruster
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=874k28s4hs.fsf@pond.sub.org \
--to=armbru@redhat.com \
--cc=abologna@redhat.com \
--cc=berrange@redhat.com \
--cc=dgilbert@redhat.com \
--cc=eblake@redhat.com \
--cc=eduardo@habkost.net \
--cc=f4bug@amsat.org \
--cc=jsnow@redhat.com \
--cc=kraxel@redhat.com \
--cc=kwolf@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=pavel.dovgaluk@ispras.ru \
--cc=pbonzini@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
--cc=v.sementsov-og@mail.ru \
--cc=wangyanan55@huawei.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.