Uh oh!
There was an error while loading. Please reload this page.
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 |
aelsayed95
commented
May 21, 2024
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. |
aelsayed95
commented
May 21, 2024
Added #119356 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ambv
left a comment
There was a problem hiding this comment.
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 |
ambv
commented
May 22, 2024
Thanks, Aya! ✨ 🍰 ✨ |
ambv
commented
May 22, 2024
The backport depends on GH-119362. I'll deal with that tomorrow. |
lysnikolaou
commented
May 22, 2024
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 <ayah.ehab11@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
GH-119404 is a backport of this pull request to the 3.13 branch. |
… user from terminating the code block (python#119355) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Issue described in #118911
Fix includes:
HistoricalReaderto match IPython's behavior