Check in:
Preferences > PyDev > Editor > Code Style > Code Formatter
and check the "Right trim lines?" check box.
i stumbled accros this usefull [site][1]
[1]: http://andrei.gmxhome.de/anyedit/ hope this could help