Replace tab character with spaces
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Replace tab character with spaces
How many space characters are needed to replace each tab character?
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm
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.
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.
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm