Page 1 of 1

SOLVED? Tab Insert Spaces Option Not Working Correctly

Posted: 12 Apr 2024 00:29
by tim_crouse
I enabled the tab insert space setting but the tab character appears to be present.

I say this because when I try to copy and paste the code into Excel it sees an error. When I copy the text and paste it into an online converter to convert tabs to spaces then copy and paste the converted test into excel the formula works.

Am I misunderstanding the function of "Tab Insert Spaces"?

I have also tried it with smart tab enabled and have also disabled preserve tab characters.
But have had no success in using the text straight from RJ TE pasted into MS Excel.

Thanks in Advance
-Tim C.

Re: Tab Insert Spaces Option Not Working Correctly

Posted: 12 Apr 2024 00:38
by tim_crouse
I was able to manually convert Tabs to Spaces via FORMAT >> TAB AND SPACES formatting function.

-Tim C.

Re: Tab Insert Spaces Option Not Working Correctly

Posted: 12 Apr 2024 00:56
by tim_crouse
One more piece of the puzzle:
All languages was selected under the highlighter setting.

Clarifying info I was editing a document with the syntax highlighter set to C++. This is where the tab-to-space conversion was not happening. I then tried the same operation using the text file syntax highlighter and the tab to space worked in real-time as I was editing the document.

Hope this info helps you get to the bottom of the issue.
Best Regards
-Tim C.

Re: Tab Insert Spaces Option Not Working Correctly

Posted: 12 Apr 2024 06:49
by pjj
Yup, this is interesting: even without "Tab inserts spaces" checked, my tab inserts spaces, and only when I check "Preserve tabs characters" I can haz tabs. (I have same settings for all languages.)

Something here is really off :?

Re: Tab Insert Spaces Option Not Working Correctly

Posted: 12 Apr 2024 14:28
by Rickard Johansson
"Preserve tabs characters" should be set when you're not using "Tab inserts spaces" (if you're using tab characters you obviously want them preserved when you open or save the document). I'll fix that in a later release.

tim_crouse: Please check you setting when the C++ highlighter is selected. You can't see if you have a different individual setting when "All languages" is selected.

Re: Tab Insert Spaces Option Not Working Correctly

Posted: 14 Apr 2024 17:03
by tim_crouse
I do not have individual settings that apply to C++ syntax highlighter.

Re: Tab Insert Spaces Option Not Working Correctly

Posted: 16 Apr 2024 13:36
by Rickard Johansson
I think this is related to the .txt extension being assigned to a highlighter.

I'm marking this issue as solved.

Re: SOLVED? Tab Insert Spaces Option Not Working Correctly

Posted: 16 Apr 2024 18:15
by tim_crouse
Soooo will there be a logic test put in place to prevent this scenario?