Fix rendering of for= in form labels
authorKarl O. Pinc <kop@karlpinc.com>
Sun, 15 Sep 2024 22:15:04 +0000 (17:15 -0500)
committerKarl O. Pinc <kop@karlpinc.com>
Sun, 15 Sep 2024 22:15:04 +0000 (17:15 -0500)
src/pgwui_common/templates/lib.mak

index fc06352eb310be510c785abdff1656c1f849f481..5ede8b9e1f84188b645ffa2265172baef46af70e 100644 (file)
@@ -45,7 +45,7 @@
             if for_id is not None:
               for_attr = f'for="{for_id}"'
           %>
-          <label ${for_attr}>${capture(caller.body) | n,trim}:</label>
+          <label ${for_attr | n}>${capture(caller.body) | n,trim}:</label>
         </td>
 </%def>