Some incantation like

indent -br -brs -cdw -ce -cs -hnl -i2 -lp -nbad -nbbo -nprs -psl -saf -sai
-saw -nss -npcs

works well for most C-ish code. Substitute -i4 if you don't use graduated
lenses in your glasses.

Frank

On Thu, Jun 5, 2008 at 6:00 PM, Josh Blum <[EMAIL PROTECTED]> wrote:

> Steven Clark wrote:
>
>> I noticed that many gnuradio files (gmsk.py for example) contain an
>> unholy mix of spaces and tabs for indentation. Is there any easy way
>> to standardize our indentation? Many text editors can make it so
>> hitting tab creates 4 spaces instead of the tab character.
>>
>>
> You can fix these files with the expand tool.
>
> http://webtools.live2support.com/linux/expand.php
>
>   (I like 4 spaces per indent, what about you guys?)
>>
>
> Raw tab characters for me. You can configure your editor to display the tab
> as any width. And you can always convert the code to spaced based
> indentation with expand.
>
> -Josh
>
>
>
>> http://www.python.org/dev/peps/pep-0008/
>>
>>
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> Discuss-gnuradio@gnu.org
>> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
>>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>



-- 
The only thing we have to fear is whatever comes along next. -- Austin Cline
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to