Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.4k
gh-118911: Trailing whitespace in a block shouldn't prevent the user from terminating the code block#119355
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
…user from terminating the code block
ghost commentedMay 21, 2024 • edited by ghost
Loading Uh oh!
There was an error while loading.Please reload this page.
edited by ghost
Uh oh!
There was an error while loading.Please reload this page.
Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb 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 |
savannahostrowski left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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 OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
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 inmain
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 onGH-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 commit5091c44)Co-authored-by: Aya Elsayed <ayah.ehab11@gmail.com>Co-authored-by: Łukasz Langa <lukasz@langa.pl>
GH-119404 is a backport of this pull request to the3.13 branch. |
… user from terminating the code block (python#119355)Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Uh oh!
There was an error while loading.Please reload this page.
Issue described in#118911
Fix includes:
HistoricalReader
to match IPython's behavior