Page 1 of 1
Search/Replace problem
Posted: Fri Jul 15, 2022 11:22 am
by gcotterl
The "Find what" string contains any character(s)
The "Replace with" string contains spaces (i.e., made by pressing the spacebar)
Under "Conditions", only "Text" is selected
Under "Scope" only "Active Document" is selected
When I click "Replace", "Replace Next" or "Replace All", the found string is replaced with tab characters (i.e., \t ) instead of with spaces.
What am I doing wrong?
Posted: Fri Jul 15, 2022 5:07 pm
by ben_josephs
Clear
Configure | Preferences | Document Classes | <Class> | Tabulation | Convert new tabs to spaces
or, for the current document,
View | Document Properties | Tabulation | Convert new tabs to spaces
Edit:
I was wrong.
a. I had it the wrong way round (it should have been Set not Clear.)
b. I can't reproduce the reported effect anyway.
Sorry.
Posted: Fri Jul 15, 2022 5:16 pm
by gcotterl
In the Configure step, under what <Class> do I find the Tabulation menu?
Posted: Fri Jul 15, 2022 6:45 pm
by ben_josephs
All of them. Use the one(s) for whichever class(es) you want to apply that setting.
Posted: Fri Jul 15, 2022 7:17 pm
by gcotterl
None of the Document Classes have a Tabulation category.
Posted: Fri Jul 15, 2022 10:59 pm
by ben_josephs
In
Configure | Preferences do you not see a tree like this:
Code: Select all
|- General
|- File
|- Editor
|- View
v· Document Classes
| v· Default
| | |- Colors
| | |- Font
| | |- Printing
| | |- Syntax
| | |- Tabulation
| >· Binary
...
?
Posted: Fri Jul 15, 2022 11:18 pm
by gcotterl
Now, I see it
Code:
|- General
|- File
|- Editor
|- View
v· Document Classes
| v· Default
| | |- Colors
| | |- Font
| | |- Printing
| | |- Syntax
| | |- Tabulation
| >· Binary
On the Tabulation page:
The Default tab spacing value = 8
The Indent size = 8
The Convert new tabs to spaces is not ticked
The Convert existing tabs to spaces when saving files is not ticked.
The Tab stops boxes are empty.
Posted: Sat Jul 16, 2022 4:17 pm
by ben_josephs
I was wrong.
a. I had it the wrong way round (it should have been Set not Clear.)
b. I can't reproduce the reported effect anyway.
Sorry.
Posted: Sat Jul 16, 2022 4:39 pm
by gcotterl
If my document contains tab characters (\t), I want to retain the tabs.
Why would I tick ("set") "Convert new tabs to spaces".
Will that prevent tab characters when replacing the "Find What" term with spaces?