scripts/kernel-doc: reindent
authorVegard Nossum <vegard.nossum@oracle.com>
Thu, 8 Feb 2024 16:17:05 +0000 (17:17 +0100)
committerJonathan Corbet <corbet@lwn.net>
Wed, 14 Feb 2024 22:33:23 +0000 (15:33 -0700)
commitaf404fb1ed2a19bd30f5e50bfb4f93a42737a6eb
tree979b934fb807fe3e8e02187c647b52e7b226a008
parent84b4cc8189f222ff3e32ea9d09afb7ae4a4a4205
scripts/kernel-doc: reindent

This file is using an ungodly mixture of 4 spaces, 2-wide tabs, 4-wide
tabs, _and_ 8-wide tabs, making it really hard to find good editor
settings for working with this file.

Bite the bullet and reindent it by hand. I tried using both perltidy
and vim, but neither of them were up to the task without changing too
much or getting confused about what they were supposed to be doing.

I did change a few instances of

    }
    else

into

    } else

(and same for elsif); the file is again written using both styles, and
I left functions which already seemed self-consistent alone.

You can verify that this commit only changes whitespace using e.g.:

    git diff --ignore-all-space --word-diff

or to see (only) the instances where newlines were added/removed:

    git diff --ignore-all-space

You can also see the delta from what perltidy would have wanted to
do to this file (when asked to only indent it), which isn't that much
in the end:

    perltidy -io -fnl scripts/kernel-doc
    git diff --no-index scripts/kernel-doc{,.tdy}

Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20240208161705.888385-1-vegard.nossum@oracle.com
scripts/kernel-doc