#1532 Break multiline imports at print margin minus 2 characters.

1.5.1
open
Editor (491)
5
2012-10-09
2012-10-09
Anonymous
No

When the following option is enabled "Allow multiline imports when the import size would exceed the print margin?" and the "How to break imports in multiline?" is set to "Use escape char", Pydev should insert the space, escape char and line break at print margin minus 2 character.

For example, if the print margin is 80 characters, then Pydev should insert the break if the line length would exceed 78 characters.

The current method, of breaking at 80 characters + 2 characters (for the space and escape char) mean that some lines will be 82 characters long, which causes pep8.py to emit a warning.

Discussion