Re: indentation whitespace tabs -> spaces

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Matt Alexander
Date:  
To: plug-discuss
Subject: Re: indentation whitespace tabs -> spaces
Craig White wrote:

>IANAP (I am not a programmer) ;-)
>
>but I have been impersonating one lately...
>
>I submitted code to horde project and one thing they objected to was
>using tabs for indents instead of spaces. I now know how to create
>unified diffs, diffs against cvs and this all is a learning process for
>me.
>
>Language is php
>
>Editor is emacs
>
>It seems that there are times when tabs are automatically converted into
>space indentations and sometimes they aren't.
>
>Is there a method to convert all the tabs to spaces?
>
>
>
>

tr '\t' ' ' < tabfile.txt > spacefile.txt

Or, in vim... ;-)
:%s/\t/ /g


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss