Menu

#1169 wrong docstring/paragraph wrapping

1.4.7
open
Editor (491)
5
2010-06-16
2010-06-16
No

Hi,

First, thanks for the splendid tool Pydev.

I found a bug in the paragraph wrapping (ctrl-2, w)

Take the following snippet (because sourceforge tends to mess with formatting and indentation, I've put everything at left most column/global scope, but it also works with function/class/method docstrings):

'''
lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum.'''
for i in range(10): print i

A docstring, with isolated opening tripple quotes, a paragraph on one line that is too long and the closing tripple quotes on that same line, immediately followed on the following line by python code

When I put my cursor on the docstring and press [CTRL-2, w] to wrap the paragraph, I get the following:

'''
lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem
ipsum lorem ipsum.''' for i in range(10): print i

The docstring is wrarped, but the python code is put on the same line as the closing tripple quote, resulting in illegal syntax code

Working with Eclipse Galileo 3.5.1, Pydev 1.5.7.2010050621

Discussion