boakley / brackets-robotframework

Brackets.io extension for editing robotframework pipe-separated plain text files
20 stars 3 forks source link

pressing tab after space inserts another space #2

Closed boakley closed 10 years ago

boakley commented 10 years ago

If you are at the end of a cell that has a trailing space, pressing tab adds an unnecessary space. For example, if you are at the end of the following line which has a trailing space:

    | | foo | 

... when you press tab, you get the original trailing space plus another space, then a pipe and a space, yielding space-space-pipe-space. The desired behavior should be to add a space only if the preceding character isn't already a space.