Fix #3339 (pure python poopt fails on multiline messages)

This commit is contained in:
mathieui 2017-10-11 23:07:17 +02:00
parent ee5e807fc2
commit 88903095c7

View file

@ -104,6 +104,7 @@ def cut_text(string: str, width: int) -> List[Tuple[int, int]]:
# This is one condition to end the line: an explicit \n is found
if wc == '\n':
spos += 1
retlist.append((start_pos, spos))
# And then initiate a new line