Message332712
| Author | Devika Sondhi |
|---|---|
| Recipients | Devika Sondhi |
| Date | 2018-12-29.11:48:17 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1546084097.18.0.541982298623.issue35612@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
textwrap.wrap does not seem to preserve tab character ('\t') in the text if it is not separated from other characters by a space.
Example:
>>> textwrap.wrap("Here is\tone line of text that is going to be wrapped after 20 columns.",20)
['Here is one line of', 'text that is going', 'to be wrapped after', '20 columns.']
The tab is missing from the above output.
However, for text with \t separated by space, the behavior is as expected (shown below).
>>> textwrap.wrap("Here is \t one line of text that is going to be wrapped after 20 columns.",20)
['Here is one', 'line of text that is', 'going to be wrapped', 'after 20 columns.'] |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2018-12-29 11:48:19 | Devika Sondhi | set | recipients: + Devika Sondhi |
| 2018-12-29 11:48:17 | Devika Sondhi | set | messageid: <1546084097.18.0.541982298623.issue35612@roundup.psfhosted.org> |
| 2018-12-29 11:48:17 | Devika Sondhi | link | issue35612 messages |
| 2018-12-29 11:48:17 | Devika Sondhi | create | |