Rewrap text seems to put everything in a single line style when selecting multiple lines
I tried the format -> Rewrap option on this text:
for line in fin:
fields = line.split(' = ') # Separate variable from value
if fields[0] == '__quickly_
# update to prefix, store oldvalue
if not oldvalue:
# update version if we forget it
# This is a very long long line, more than 80 characters unfortunately and that's bad... so bad...
elif fields[0] == '__version__':
You can notice the extra spaces before "# update version if we forget it" and the trailing spaces at the end of the same line. Rewrap should remove them and align the commentary.
Also, the next line (a comment) should be splitted in two comment lines.
* If I select this text and go to "rewrap text", I got this:
for line in fin: fields = line.split(' = ') # Separate variable from
value if fields[0] == '__quickly_
prefix, store oldvalue if not oldvalue: oldvalue = fields[1] line =
"%s = '%s'\n" % (fields[0], prefix) else: # restore oldvalue line =
"%s = %s" % (fields[0], oldvalue) # update version if we forget it #
This is a very long long line, more than 80 caracters infortunately
and that's bad... so bad... elif fields[0] == '__version__': line =
"%s = '%s'\n" % (fields[0], VERSION) fout.write(line)
So, ok, nothing is gets more than 80 characters, but I don't think the code will work :)
* Also, if I only select the long comment line, I get:
# This is a very long long line, more than 80 characters
No comment character on the second line
* List and function definition seems to be better treated:
def update_
tttttttt=
But if possible, ttttttt should be aligned with prefix for readability
* Last thing (I won't bother you after :)), is that if I don't select the first spaces in a lines, only the selected portion is rewrap at 80 characters, without counting the prepending spaces. I think that the plugin should select the whole line(s) first.
I didn't opened it as a bug, should I?
Thanks again for your work on this project.
0.3.1-0ubuntu0 installed on karmic from your ppa.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Curtis Hovey
- Solved:
- Last query:
- Last reply: