Skip to content
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

bpo-44544: add textwrap placeholder arg #27671

Merged
merged 3 commits into from
Mar 19, 2022

Conversation

akulakov
Copy link
Contributor

@akulakov akulakov commented Aug 9, 2021

A small follow up fix to the linked issue -- add placeholder arg which does have effect in these 2 functions.

https://bugs.python.org/issue44544

@github-actions
Copy link

github-actions bot commented Sep 9, 2021

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Sep 9, 2021
@MaxwellDupre
Copy link
Contributor

Looks off:
placeholder=' [...]')
placeholder='[...]')

@akulakov
Copy link
Contributor Author

@MaxwellDupre It looks a bit better if there is a leading space (and consistent with existing placeholder default in this module):

my line of text[...]
my line of text [...]

Copy link
Contributor

@MaxwellDupre MaxwellDupre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@miss-islington
Copy link
Contributor

Thanks @akulakov for the PR, and @asvetlov for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 19, 2022
(cherry picked from commit cb7874f)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 19, 2022
(cherry picked from commit cb7874f)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
@bedevere-bot
Copy link

GH-31992 is a backport of this pull request to the 3.10 branch.

@bedevere-bot bedevere-bot removed needs backport to 3.10 only security fixes needs backport to 3.9 only security fixes labels Mar 19, 2022
@bedevere-bot
Copy link

GH-31993 is a backport of this pull request to the 3.9 branch.

miss-islington added a commit that referenced this pull request Mar 19, 2022
(cherry picked from commit cb7874f)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
miss-islington added a commit that referenced this pull request Mar 19, 2022
(cherry picked from commit cb7874f)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
@akulakov akulakov deleted the 44544-Add-textwrap-placeholder-arg branch March 21, 2022 15:22
@akulakov
Copy link
Contributor Author

@MaxwellDupre @asvetlov thanks for reviewing!

hello-adam pushed a commit to hello-adam/cpython that referenced this pull request Jun 2, 2022
(cherry picked from commit cb7874f)

Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news stale Stale PR or inactive for long period of time.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants