• Vegard Nossum's avatar
    scripts/kernel-doc: reindent · af404fb1
    Vegard Nossum authored
    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: default avatarVegard Nossum <vegard.nossum@oracle.com>
    Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
    Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
    Link: https://lore.kernel.org/r/20240208161705.888385-1-vegard.nossum@oracle.com
    af404fb1
kernel-doc 77 KB