Ask Agaric: Whitespace at the end of lines in a Drupal module or theme?
Is this annoying or a useful feature. My IDE removes trailing whitespace. The disadvantage is that it takes you more time to see the real changes/fixes.
It is a good thing that your editor deletes whitespace at the end of lines, that conforms to coding standards. While your making small typo fixes like that, you should fix the indentation also; I see some things where you removed space at the end but the indentation was left at far too much; each progressive indent should be two spaces (and no tabs used at all).
So while fixing typos, please see:
http://drupal.org/coding-standards
(For committing to Drupal core, however, note that you don't want a patch to do both code cleanup and functionality improvements at the same time— this should be done in separate patches.)
Comments
Post new comment