in reply to Re: How to replace Tab with spaces not altering postion
in thread How to replace Tab with spaces not altering postion
Text::Tabs will do the same as my example, it will replace the tabs with a fixed amount of spaces but it will not consider the spaces in between the two strings. If you make a tab it can contain one time 2 spaces, another time it contains 5 spaces, .... so if you replace the tabs with a fixed amount of spaces the positioning will be scrambled. No collumn effect anymore. So to make it work you first would have to check the amount of spaces between the two strings and then replace the tab with the amount of spaces it was representing. Sorry the Text::Tabs is working fine. It was a proportional font that was all the time giving the bad result and giving the impression that the spaces were incorrect. It is sometimes in a detail.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: How to replace Tab with spaces not altering postion
by particle (Vicar) on Oct 09, 2002 at 15:39 UTC | |
by juo (Curate) on Oct 09, 2002 at 16:46 UTC | |
by BrowserUk (Patriarch) on Oct 09, 2002 at 18:42 UTC | |
by juo (Curate) on Oct 09, 2002 at 19:15 UTC | |
by BrowserUk (Patriarch) on Oct 09, 2002 at 19:00 UTC |