Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Documentation/CodingStyle: fix tab-spaces mixture

Coding style description has a irregular mixture of tabs and spaces in two
places which is bad by any means and can possibly hurt somebody's sense
of beauty.

Signed-off-by: Pavel Kretov <firegurafiku@gmail.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Pavel Kretov and committed by
Jonathan Corbet
696156f0 9e39dc1e

+4 -4
+4 -4
Documentation/CodingStyle
··· 13 13 Anyway, here goes: 14 14 15 15 16 - Chapter 1: Indentation 16 + Chapter 1: Indentation 17 17 18 18 Tabs are 8 characters, and thus indentations are also 8 characters. 19 19 There are heretic movements that try to make indentations 4 (or even 2!) ··· 503 503 (defun c-lineup-arglist-tabs-only (ignored) 504 504 "Line up argument lists by tabs, not spaces" 505 505 (let* ((anchor (c-langelem-pos c-syntactic-element)) 506 - (column (c-langelem-2nd-pos c-syntactic-element)) 507 - (offset (- (1+ column) anchor)) 508 - (steps (floor offset c-basic-offset))) 506 + (column (c-langelem-2nd-pos c-syntactic-element)) 507 + (offset (- (1+ column) anchor)) 508 + (steps (floor offset c-basic-offset))) 509 509 (* (max steps 1) 510 510 c-basic-offset))) 511 511