From 0c5e940cfaabdb09aff22482c20a841c8796babc Mon Sep 17 00:00:00 2001 From: Vincent Poulailleau Date: Mon, 26 May 2025 17:11:25 +0200 Subject: [PATCH] Fix example according to PEP 750 A redundant extra part was written. Added a closing tag, to match the usage in PEP 750. --- Doc/whatsnew/3.14.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/whatsnew/3.14.rst b/Doc/whatsnew/3.14.rst index 88e52015bdc2b1..438e06ba560e55 100644 --- a/Doc/whatsnew/3.14.rst +++ b/Doc/whatsnew/3.14.rst @@ -155,7 +155,7 @@ As another example, generating HTML attributes from data: attributes = {"src": "shrubbery.jpg", "alt": "looks nice"} template = t"" - assert html(template) == 'looks nice' + assert html(template) == 'looks nice' Compared to using an f-string, the ``html`` function has access to template attributes containing the original information: static strings, interpolations, and values