This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2012年07月30日 04:10 by chris.jerdonek, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| issue-textwrap-whitespace.patch | chris.jerdonek, 2012年07月30日 04:10 | review | ||
| Messages (3) | |||
|---|---|---|---|
| msg166855 - (view) | Author: Chris Jerdonek (chris.jerdonek) * (Python committer) | Date: 2012年07月30日 04:10 | |
This issue is to correct the list of whitespace characters to replace in the documentation for the textwrap module's TextWrapper.replace_whitespace attribute. The documentation says this list is string.whitespace: http://docs.python.org/dev/library/textwrap.html#textwrap.TextWrapper.replace_whitespace However, the code deliberately avoids using string.whitespace and uses a hard-coded list of characters instead. For example, see this code comment: # Hardcode the recognized whitespace characters to the US-ASCII # whitespace characters. The main reason for doing this is that in # ISO-8859-1, 0xa0 is non-breaking whitespace, so in certain locales # that character winds up in string.whitespace.... http://hg.python.org/cpython/file/917295aaad76/Lib/textwrap.py#l12 Patch attached. |
|||
| msg168142 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2012年08月13日 20:26 | |
New changeset 90a8a462d2f7 by Andrew Svetlov in branch '3.2': Issue #15497: Correct characters in TextWrapper.replace_whitespace docs. http://hg.python.org/cpython/rev/90a8a462d2f7 New changeset edcbf3edf701 by Andrew Svetlov in branch 'default': Issue #15497: Correct characters in TextWrapper.replace_whitespace docs. http://hg.python.org/cpython/rev/edcbf3edf701 New changeset 3bddc965e2ea by Andrew Svetlov in branch '2.7': Issue #15497: Correct characters in TextWrapper.replace_whitespace docs. http://hg.python.org/cpython/rev/3bddc965e2ea |
|||
| msg168143 - (view) | Author: Andrew Svetlov (asvetlov) * (Python committer) | Date: 2012年08月13日 20:27 | |
Done. Thanks, Chris. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:33 | admin | set | github: 59702 |
| 2012年08月13日 20:27:36 | asvetlov | set | status: open -> closed resolution: fixed messages: + msg168143 stage: patch review -> resolved |
| 2012年08月13日 20:26:47 | python-dev | set | nosy:
+ python-dev messages: + msg168142 |
| 2012年08月13日 19:27:42 | chris.jerdonek | set | nosy:
+ asvetlov versions: + Python 3.2 |
| 2012年07月30日 04:10:40 | chris.jerdonek | create | |