Mailinglist Archive: yast-devel (43 mails)

< Previous Next >
[yast-devel] Tabs and spaces
  • From: Martin Vidner <mvidner@xxxxxxx>
  • Date: Tue, 4 May 2010 08:01:40 +0200
  • Message-id: <20100504060140.GA5253@xxxxxxxxxxxxxxxx>

this file is misaligned:

It is because the Tab *character* ("\t") aligns at 8 columns
(Emacs: tab-width, vim: tabstop), which is used by the terminal if
you "cat".

Do not confuse that value with the indentation offset (Emacs:
c-basic-offset, vim: shiftwidth), invoked by the Tab *key*, which is
apparently 2 in that file, but the author mistakenly modified the
tab-width to 2 too. Please check your editor settings.

For details, see

Note that where are various modes of strictness that can be applied
in a project about indentation, spaces, and tabs. I prefer the
relaxed side, tab-width=8 being the hard limit.

When you fix the indentation, please do it in a separate commit so
that it does not hide more substantial changes.
Martin Vidner, YaST developer

Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
< Previous Next >
Follow Ups