You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pskowronek
changed the title
setClearWhitespaceLinesEnabled doesn't work auto-ident is disabled
setClearWhitespaceLinesEnabled doesn't work if auto-ident is disabled
Nov 30, 2022
pskowronek
changed the title
setClearWhitespaceLinesEnabled doesn't work if auto-ident is disabled
setClearWhitespaceLinesEnabled doesn't work if auto-indent is disabled
Nov 30, 2022
Thanks for reporting this! To answer your questions:
when auto-indent is on, the line is cleared and spaces are being 'moved' to new line - probably this is expected behavior? Or not?
Yes, the idea with that combination is the indent of the prior line (being cleared) is the indent that should be used for subsequent lines, so it is essentially moved to the new line.
is there any option btw to remove trailing spaces?
Not currently, but feel free to open a new feature request if you'd be interested in this. Would you expect something to happen with each Enter press, or some sort of action that could be executed on say file save (or any arbitrary event)_?
Description
When
setClearWhitespaceLinesEnabled
is enabled andsetAutoIndentEnabled
is disabled then spaces are not being cleared when Enter is hit.Steps to Reproduce
./gradlew RSyntaxTextAreaDemo:run
Expected behavior
The spaces are cleared when enter is hit.
Actual behavior
The spaces are left uncleared.
Screenshots
Java version
OS
macOS 10.15.7
Additional context
Additional remarks:
The text was updated successfully, but these errors were encountered: