diff --git a/docs/patterns/wtforms.rst b/docs/patterns/wtforms.rst index 8fc5e589..6c08b808 100644 --- a/docs/patterns/wtforms.rst +++ b/docs/patterns/wtforms.rst @@ -82,7 +82,7 @@ Here's an example :file:`_formhelpers.html` template with such a macro: .. sourcecode:: html+jinja {% macro render_field(field) %} -
{{ field.label }}
+
{{ field.label }}
{{ field(**kwargs)|safe }} {% if field.errors %}