From 32db9d6112c68158f22f048d4419b366893c1d26 Mon Sep 17 00:00:00 2001 From: Pablo Galindo Salgado Date: Tue, 10 Oct 2023 15:14:41 +0200 Subject: [PATCH] PEP 701: Clarify that newlines also end format specifier mode (#3460) --- peps/pep-0701.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/peps/pep-0701.rst b/peps/pep-0701.rst index f4b393d0b..b83ba92a2 100644 --- a/peps/pep-0701.rst +++ b/peps/pep-0701.rst @@ -373,8 +373,8 @@ tokens: 2. Keep consuming tokens until a one of the following is encountered: * A closing quote equal to the opening quote. - * If in "format specifier mode" (see step 3), an opening brace (``{``) or a - closing brace (``}``). + * If in "format specifier mode" (see step 3), an opening brace (``{``), a + closing brace (``}``), or a newline token (``\n``). * If not in "format specifier mode" (see step 3), an opening brace (``{``) or a closing brace (``}``) that is not immediately followed by another opening/closing brace.