Wireshark-dev: Re: [Wireshark-dev] tab-width considered less effective than some might think

From: Sake Blok <sake@xxxxxxxxxx>
Date: Fri, 24 Jul 2009 07:47:16 +0200
On Fri, Jul 24, 2009 at 07:35:49AM +0200, Sake Blok wrote:
> On Thu, Jul 23, 2009 at 09:56:02PM -0400, Bill Meier wrote:
> > 
> > I've been thinking for quite some time about suggesting that the use 
> > "non 8 space tabs" (eg: tab stops every 4 spaces) be deprecated;
> > 
> > So: what do others think ?  :)
> 
> I would go one step further, as tabs will be displayed differently
> depending on what program is displaying the code, why not deprecate tabs
> alltogether and stick to using spaces for indentation only?

Which is what the majority of dissectors already do :-)

sake@brutus:/wireshark/trunk/epan/dissectors$ fgrep -l "<TAB>" *.c | wc -l
758
sake@brutus:/wireshark/trunk/epan/dissectors$ fgrep -v -l "<TAB>" *.c | wc -l
855
sake@brutus:/wireshark/trunk/epan/dissectors$ 

Cheers,


Sake