-
-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
textwrap: support custom tabsize #57361
Comments
The textwrap module calls .expandtabs() to expand tabs to spaces. This patch adds support for a custom tabsize, so that .expandtabs(tabsize) is called instead. Includes test case. |
I am a bit surprised this was not part of the original design. Patch as is has new tests and looks good on first reading. |
+1 |
Two comments:
|
textwrap_tabsize_v2.diff:
|
The code LGTM, the documentation lacks |
New changeset d38e821c1b80 by Hynek Schlawack in branch 'default': |
I've added it myself and committed your code – thank you for your contribution John! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: