[wingide-users] whitespace handling

Michael Foord fuzzyman at voidspace.org.uk
Thu Jul 3 11:20:44 MDT 2008


Wingware Support wrote:
> Michael P. Soulier wrote:
>> I noticed that when I use Wing on a project and then go to commit in 
>> Git, one of its hooks complains that I have trailing whitespace. Sure 
>> enough, when Wing auto-indents, it fills in with space to that point.
>>
>> Is there a way to auto-trim trailing whitespace, especially from 
>> blank lines, but in general? Vim certainly doesn't do this by default.
>
> You can turn on the Editor / Strip Trailing White Space preference.
> Currently the only option is to do it as the file is saved to disk.
Personally I think the current behaviour is correct and to be preferred. :-)

Michael

>
>> I also noticed that when I modified the last line in a file, diff 
>> complained that the file did not end with a newline character.
>
> Wing doesn't auto-add a trailing newline.  We might add an option for
> that as well in the future.
>


-- 
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/
http://www.trypython.org/
http://www.ironpython.info/
http://www.resolverhacks.net/
http://wwww.theotherdelia.co.uk/



More information about the wingide-users mailing list