simple script for checking whitespaces, tabs, etc?
Hi all, I am almost ready to submit my video4linux2 input... But the editor I am using is doing weird things like converting spaces in tabs and similar stuff, so I fear the .c file might not respect the "no tabs" rule. Can anyone provide some perl (or similar) script for checking/fixing the whitespace stuff? (I am a perl illiterate :) I tried "indent -i4 -kr", as indicated in the docs, but here (debian unstable) it introduces a lot of tabs. Thanks, Luca -- _____________________________________________________________________________ Copy this in your signature, if you think it is important: N O W A R ! ! ! -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Scopri come proteggere dai virus il tuo computer e come eliminare * ogni tipo di virus! - clicca qui Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=3212&d=30-1
On Mon, 2006-01-30 at 13:28 +0100, Luca Abeni wrote: [...]
Can anyone provide some perl (or similar) script for checking/fixing the whitespace stuff? (I am a perl illiterate :) Nevermind... I just discovered that the script in CVSROOT used for enforcing the rules is bash, not perl... So I can hack it and use it for my needs.
Luca -- _____________________________________________________________________________ Copy this in your signature, if you think it is important: N O W A R ! ! ! -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Acquista ora Email.it Phone Card e comincia a risparmiare sulle tue telefonate! Clicca e scopri l'offerta Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2684&d=30-1
participants (1)
-
lucabe72@email.it