Message231065
Current regex produces insane result.
$ ./python -c "import textwrap; print(textwrap.wrap('this-is-a-useful-feature', width=1, break_long_words=False))"
['this-', 'is-a', '-useful-', 'feature']
Antoine's regex produces more correct result for this case: ['this-', 'is-', 'a-', 'useful-', 'feature']. But this is not totally correct, one-letter word should not be separated. This can be easy fixed. |
|
Date |
User |
Action |
Args |
2014-11-12 08:34:22 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, georg.brandl, pitrou, roippi, inkerman |
2014-11-12 08:34:21 | serhiy.storchaka | link | issue22687 messages |
2014-11-12 08:34:21 | serhiy.storchaka | create | |
|