• Steven Rostedt (VMware)'s avatar
    streamline_config.pl: make spacing consistent · b83c8ba4
    Steven Rostedt (VMware) authored
    Patch series "streamline_config.pl: Fix Perl spacing".
    
    Talking with John Hawley about how vim and emacs deal with Perl files with
    respect to tabs and spaces, I found that some of my Perl code in the
    kernel had inconsistent spacing.  The way emacs handles Perl by default is
    to use 4 spaces per indent, but make all 8 spaces into a single tab.  Vim
    does not do this by default.  But if you add the vim variable control:
    
     # vim: softtabstop=4
    
    to a perl file, it makes vim behave the same way as emacs.
    
    The first patch is to change all 8 spaces into a single tab (mostly from
    people editing the file with vim).  The next patch adds the softtabstop
    variable to make vim act like emacs by default.
    
    This patch (of 2):
    
    As Perl code tends to have 4 space indentation, but uses tabs for every 8
    spaces, make that consistent in the streamline_config.pl code.  Replace
    all 8 spaces with a single tab.
    
    Link: https://lkml.kernel.org/r/20210322214032.133596267@goodmis.orgSigned-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
    Cc: "John (Warthog9) Hawley" <warthog9@kernel.org>
    Cc: Masahiro Yamada <masahiroy@kernel.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    b83c8ba4
streamline_config.pl 16.4 KB