lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GOP-PROP 1: python formatting - probable decision


From: Matthias Kilian
Subject: Re: GOP-PROP 1: python formatting - probable decision
Date: Wed, 15 Jun 2011 11:46:01 +0200
User-agent: Mutt/1.4.2.3i

On Wed, Jun 15, 2011 at 12:11:37AM +0100, Graham Percival wrote:
> There should be absolutely no tab characters for indentation in
> any .py file in lilypond git. All such files should be converted
> to use spaces only.

I'd go a step further and recommend (for python files) that no tabs
are used at all. Because, if you're using some editor like nvi or
vim and set only shiftwidth to 4 (*enver ever set tabsize to something
else than 8!*), you then just can pipe the whole buffer through
expand(1) and you are done. If there were tabs in the file (other
than in indentations), this would introduce spurious white space
changes cluttering the diffs.

NB: personally, I prefer a style where initial spaces are unexpanded
to (8 column) tabs, regardless of the indentation, but unfortunately
there are editors (and people) around that don't get the difference
between indentation and tab width.

Ciao,
        Kili

ps: IIRC, the editor in eclipse is (or was?) an example for badly
mixing up tab size and indentation.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]