Increase Indent, or TAB, respecting my intentation (long)
Posted: Mon Sep 29, 2003 1:24 pm
When I use the Increase Indent toolbar command (or just hitting TAB on a block of selected text), TextPad 4.7.1 not only adds a TAB char to any row selected, but also converts the spaces at the beginning of the same rows in TABs.
I generally use a mixed approach during the indent of my texts, sometimes I need a tab (when indenting an embedded structure, for example) and sometimes I need a bunch of true spaces (for example when I have to put text in "columns" under previous lines.
If TP changes my spaces in TABs I cannot guarantee a correct rendering on different TAB-viewing media, for example e-mail readers, or printers.
Here is an example: I use to format my SQL commands this way:
Note that the second line starts with exactly 6 blanks, and, with a non-proportional font, this puts the "t" of "two" just under the "o" of "one".
Well, if my tab spacing is set to 4, when I indent this block, the second line starts with TAB (the indent requested) TAB (the first 4 blanks converted!) and the two remaining blanks (there were 6, remember?). This is not the behaviour I need, I do not want TP to convert the spaces in the text, but only append a TAB at the beginning of the line, leaving the content unchanged.
BTW, I am sure that a previous version of TP was behaving the other way, "respecting" the previous intentation literally.
Is there any option I can setup to restore the behavior I need? I know I can avoid tabs and convert every TAB to space, but I need TABS, I do not want to have train of spaces (a-la VB) used to indent embedded structures.
Thanx
Pietro
I generally use a mixed approach during the indent of my texts, sometimes I need a tab (when indenting an embedded structure, for example) and sometimes I need a bunch of true spaces (for example when I have to put text in "columns" under previous lines.
If TP changes my spaces in TABs I cannot guarantee a correct rendering on different TAB-viewing media, for example e-mail readers, or printers.
Here is an example: I use to format my SQL commands this way:
Code: Select all
select one
,two
,three
from tab1
,tab2
where cond1
and cond2
;
Well, if my tab spacing is set to 4, when I indent this block, the second line starts with TAB (the indent requested) TAB (the first 4 blanks converted!) and the two remaining blanks (there were 6, remember?). This is not the behaviour I need, I do not want TP to convert the spaces in the text, but only append a TAB at the beginning of the line, leaving the content unchanged.
BTW, I am sure that a previous version of TP was behaving the other way, "respecting" the previous intentation literally.
Is there any option I can setup to restore the behavior I need? I know I can avoid tabs and convert every TAB to space, but I need TABS, I do not want to have train of spaces (a-la VB) used to indent embedded structures.
Thanx
Pietro