hhatto/autopep8 — pull request #106 by gwelymernans (2014-01-04 01:36:26+00:00)
Title: Multiple multiline strings were not being reformatted correct.

Code that had one multiline string was handled correctly. However, if
there were multiple multiline strings for a line of code, it wouldn't
format them correctly. E.g.:

```
def f():
email_text += """This is a really long docstring that goes
over the column limit and is multi-line.

Czar: """+despot["Nicholas"]+"""

Minion: """+serf["Dmitri"]+"""

Residence: """+palace["Winter"]+"""

"""
```

is formatted to this:

```
def f():
email_text += """This is a really long docstring that goes over the column limit and is multi-line.

Czar: """ + despot["Nicholas"] + """

Minio
n:
""" + serf["Dmitri"] + """

Residence: """ + palace["Winter"] + """

"""
```

This patch takes the bit where it's taking multiline offsets into
account and makes it more general.