Message388858
The `shorten` function from the `textwrap` module does not always break strings at the correct location.
`shorten("hello world!", width=7, placeholder="")`
returns
`'hello'`
as expected, but
`shorten("hello world!!!!!!", width=7, placeholder="")`
returns
`'hello w'`
which is incorrect. The error seems to appear when two or more exclamation marks (in this specific example) are added. |
|
Date |
User |
Action |
Args |
2021-03-16 16:24:25 | annesylvie | set | recipients:
+ annesylvie |
2021-03-16 16:24:25 | annesylvie | set | messageid: <1615911865.24.0.216349409983.issue43518@roundup.psfhosted.org> |
2021-03-16 16:24:25 | annesylvie | link | issue43518 messages |
2021-03-16 16:24:24 | annesylvie | create | |
|