W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2001

Re: Not a bug, but an idea.

From: Richard A. O'Keefe <ok@atlas.otago.ac.nz>
Date: Wed, 9 May 2001 13:03:15 +1200 (NZST)
Message-Id: <200105090103.NAA260326@atlas.otago.ac.nz>
To: html-tidy@w3.org, kevin.brannen@springbow.com
	>         I've recently started using Tidy and it's great. I have a simple
	> request. I'd like to be able to tell it to use a tab character for the
	> identing instead of it being hardcoded to "  ". If you point me at the
	> right area in the code I'd be happy to take a look.

I don't quite see the put of using TABs.
The thing about spaces is that everyone knows what they are,
whereas outside the UNIX world (where a TAB is 8 columns, by fiat)
it's open slather.  Tabs might be _anything_ from 1 column to 40 (and yes
I have seen 40-column tabs once).  Even in the UNIX world, there are too
many people who think it's ok to use the TAB key in VI instead of using
VI's native indenting commands, with the result that their code is unusable
by anyone else.

If you really REALLY have to do this, you don't have to change Tidy.
Just pipe the output through "pr -t -iN" where N is the number of columns
per tab you think is the right amount.  There are open source versions of
pr around, even for Windows.
Received on Tuesday, 8 May 2001 21:03:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:45 GMT