formatter doesn't remove empty lines [message #933741] |
Fri, 05 October 2012 05:49  |
Eclipse User |
|
|
|
Hi!
If I use setLineWrap(1) and there are already n lines present, they are not reduced to 1, but there will be n+1.
Consequently, when I press Ctrl-F several times in a row, then an empty line is added every time.
The same thing happens if I use setSpace("\n"): new lines just get added.
Is this how it's meant to be, or am I using it wrong?
best regards,
Vlad
|
|
|
|
Re: formatter doesn't remove empty lines [message #935931 is a reply to message #935236] |
Sun, 07 October 2012 09:33  |
Eclipse User |
|
|
|
Hi Boris,
Of course I tried that too, and anyway, setLinewrap() just calls setLineWrap(1) which just calls setLineWrap(1,1,1).
After some digging, it looks like the problem appeared because of a terminal that was a little weird (could end with non-ignored whitespace). Removing that fixed it.
regards,
Vlad
|
|
|
Powered by
FUDForum. Page generated in 0.04278 seconds