Home Download Buy Blog Forum Support

Bug: Autoindent leaves spaces

Bug: Autoindent leaves spaces

Postby madevilgenius on Thu Nov 01, 2012 7:18 am

If you are at the end of an indented line and hit enter (which will cause a newly indented line to be inserted below), and then move away from the line without typing anything, the indentation will remain.

Image

After hitting enter:

Image

If you don't type anything, the indentation will stay there. There is no reason for this.

This is with the "trim_automatic_white_space" pref set to true.

Latest dev build (2220).
madevilgenius
 
Posts: 19
Joined: Tue Oct 11, 2011 6:51 pm

Re: Bug: Autoindent leaves spaces

Postby madevilgenius on Sat Nov 17, 2012 5:31 pm

One more:

Image

Hitting Enter there produces an arguably meaningless indent:

Image
madevilgenius
 
Posts: 19
Joined: Tue Oct 11, 2011 6:51 pm

Re: Bug: Autoindent leaves spaces

Postby vitaLee on Sun Nov 18, 2012 11:12 am

you might want to set "trim_trailing_white_space_on_save": true in your settings to get rid of those whitespace
vitaLee
 
Posts: 150
Joined: Tue Dec 27, 2011 11:10 pm

Re: Bug: Autoindent leaves spaces

Postby madevilgenius on Sat Jan 19, 2013 7:16 pm

No, that is the wrong solution. Automatically trimming whitespace will screw up the history in version control systems such as Git.
madevilgenius
 
Posts: 19
Joined: Tue Oct 11, 2011 6:51 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 13 guests