-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
gh-118911: Trailing whitespace in a block shouldn't prevent the user from terminating the code block #119355
Conversation
…user from terminating the code block
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
One issue discovered while testing this (exists on main too): Within a code block, if the user hits enter twice to add new lines, the first line matches the previous line's indentation while the next one doesn't. |
Added #119356 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I tested this on Fedora (via Devcontainer) and it looks like this now works as described.
Misc/NEWS.d/next/Library/2024-05-21-20-13-23.gh-issue-118911.iG8nMq.rst
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good.
I merged new changes in main
into your PR since there were conflicts, and reworded the blurb per my suggestion.
Thanks @aelsayed95 for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Sorry, @aelsayed95 and @ambv, I could not cleanly backport this to
|
Thanks, Aya! ✨ 🍰 ✨ |
The backport depends on GH-119362. I'll deal with that tomorrow. |
Thanks, @aelsayed95! I've merged #119362. I'll open a backport PR now. |
…ent the user from terminating the code block (pythonGH-119355) (cherry picked from commit 5091c44) Co-authored-by: Aya Elsayed <[email protected]> Co-authored-by: Łukasz Langa <[email protected]>
GH-119404 is a backport of this pull request to the 3.13 branch. |
…e user from terminating the code block (GH-119355) (#119404) (cherry picked from commit 5091c44) Co-authored-by: Aya Elsayed <[email protected]> Co-authored-by: Łukasz Langa <[email protected]>
… user from terminating the code block (python#119355) Co-authored-by: Łukasz Langa <[email protected]>
Issue described in #118911
Fix includes:
HistoricalReader
to match IPython's behavior