increase/decrease indent strips tabs?!

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
abeness
Posts: 9
Joined: Fri Jan 07, 2005 3:46 pm
Location: New York, NY, U.S.A.
Contact:

increase/decrease indent strips tabs?!

Post by abeness »

When I increase or decrease the indent on a selected block in 4.7.3, tabs are stripped from lines that contain only tabs. This behavior is extremely annoying to me, because I use the clip library to insert e.g. a whole SELECT CASE statement, including tabs on empty lines to indent yet-to-be-written statements within the SELECT CASE statement.

These tabs should NOT be stripped, but instead indented just as are lines with text.

Have I missed an option, or is this a bug? Maintain Indentation and Auto-indent Blocks are both checked in the doc class, but I haven't spotted an option that might affect this issue.

Thanks,
Abe Hendin
AtYourSpeed Consulting
User avatar
s_reynisson
Posts: 940
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

Do you have "Convert New tabs to Spaces" checked? Look under Configure->Preferences->Document Classes->*your class*->Tabulation. HTH
Edit. Since this is a change under "Document Classes" first close all open documents in TP.
Then I open up and see
the person fumbling here is me
a different way to be
abeness
Posts: 9
Joined: Fri Jan 07, 2005 3:46 pm
Location: New York, NY, U.S.A.
Contact:

Post by abeness »

s_reynisson wrote:Do you have "Convert New tabs to Spaces" checked?
Nope. Thanks for responding. Other ideas?
Abe Hendin
AtYourSpeed Consulting
Ed
Posts: 103
Joined: Tue Mar 04, 2003 9:09 am
Location: Devon, UK

Post by Ed »

What about the "delete trailing spaces" option?
abeness
Posts: 9
Joined: Fri Jan 07, 2005 3:46 pm
Location: New York, NY, U.S.A.
Contact:

Post by abeness »

Ed wrote:What about the "delete trailing spaces" option?
If you mean the "strip trailing spaces when saving" option, that's off too, and anyway, the tabs are stripped immediately upon increasing or decreasing the indent, when there are only tabs in a line. This really seems like a bug to me, or at the very least bad behavior. Try it and see for yourself. Just start a new file, and enter:

Testing
[t]Testing
[t][t]Testing
[t][t]
[t]Testing
Testing

Select the block, and increase the indent. The tabs on the 4th line are stripped. It's particularly annoying when the selected block is many steps deep in code... Ahh well. I urge the developers to correct it with the next release. Please, please? Textpad is oh so cool in every other respect.
Abe Hendin
AtYourSpeed Consulting
User avatar
s_reynisson
Posts: 940
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

I get the same results, the fourth line looses the tabs and becomes empty, ie. just the \n.
abeness wrote:Select the block, and increase the indent. The tabs on the 4th line are stripped.
Then I open up and see
the person fumbling here is me
a different way to be
abeness
Posts: 9
Joined: Fri Jan 07, 2005 3:46 pm
Location: New York, NY, U.S.A.
Contact:

Post by abeness »

Thanks for the confirmation, s_reynisson. Now, where do I report this as a bug?
Abe Hendin
AtYourSpeed Consulting
User avatar
s_reynisson
Posts: 940
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

Then I open up and see
the person fumbling here is me
a different way to be
abeness
Posts: 9
Joined: Fri Jan 07, 2005 3:46 pm
Location: New York, NY, U.S.A.
Contact:

Post by abeness »

Thanks!
Abe Hendin
AtYourSpeed Consulting
Post Reply