[wingide-users] whitespace handling
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. :-)
>> 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.
More information about the wingide-users