discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Standardized indentation?


From: Frank Brickle
Subject: Re: [Discuss-gnuradio] Standardized indentation?
Date: Thu, 5 Jun 2008 18:43:32 -0400

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 <address@hidden> 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
address@hidden
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio




_______________________________________________
Discuss-gnuradio mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio



--
The only thing we have to fear is whatever comes along next. -- Austin Cline
reply via email to

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