Fix #3339 (pure python poopt fails on multiline messages)
This commit is contained in:
parent
ee5e807fc2
commit
88903095c7
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue