Page 1 of 1
Replace tab character with spaces
Posted: Fri Dec 13, 2013 6:03 pm
by gcotterl
How many space characters are needed to replace each tab character?
Posted: Fri Dec 13, 2013 8:38 pm
by ben_josephs
A tab character does not correspond to a fixed number of spaces: it's an instruction to move the cursor to the next tab stop.
Tab stops can be anywhere, but are often at every eighth or fourth column. Many text editing programs, including TextPad, allow tab stops to be set at any positions, regular or irregular, for a document or document class.
So the number of spaces an individual tab character represents depends on its own position and the postion of the next following tab stop.
Posted: Fri Dec 13, 2013 9:25 pm
by gcotterl
Thanks.
Posted: Thu Dec 19, 2013 1:44 pm
by jeffy
I personally consider three spaces equivalent to a tab. But it's whatever you want it to be.
Posted: Thu Dec 19, 2013 2:09 pm
by ben_josephs
A tab is not equivalent to any fixed number of spaces. It's a control character that tells the displaying device or program what to do with the cursor.