Skip to content

Commit 0cdcfbd

Browse files
committed
Update 2026-07-27-17-20-49.gh-issue-154719.eI88Gs.rst
1 parent 9f5a8e0 commit 0cdcfbd

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
Whitespace immediately before ``}``, ``!``, ``:``, or ``=`` is now included
2-
in :attr:`string.templatelib.Interpolation.expression` for interpolations
3-
created from t-string literals. Preserve escaped quotes while reconstructing
4-
t-string interpolation metadata and f-string debug expression text containing
5-
comments.
1+
Trailing whitespace in a t-string interpolation expression is now preserved
2+
in :attr:`string.templatelib.Interpolation.expression`, up to the closing ``}``
3+
or the conversion (``!``), format (``:``), or debug (``=``) delimiter.
4+
Explicit line continuations following a debug ``=`` remain part of the debug
5+
text and are excluded from :attr:`~string.templatelib.Interpolation.expression`.
6+
Escaped quotes are now preserved while reconstructing t-string interpolation
7+
metadata and f-string debug text containing comments.

0 commit comments

Comments
 (0)