From 56675b3bade603a458d01443bda8070ca0489005 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Mon, 19 Apr 2010 02:25:31 +0200 Subject: [PATCH] Fixed indentation of an example. --- docs/patterns/wtforms.rst | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/docs/patterns/wtforms.rst b/docs/patterns/wtforms.rst index 0d6a313e..262d364f 100644 --- a/docs/patterns/wtforms.rst +++ b/docs/patterns/wtforms.rst @@ -73,14 +73,12 @@ Here an example `_formhelpers.html` template with such a macro: {% macro render_field(field) %}
{{ field.label }}
{{ field(**kwargs)|safe }} - {% if field.errors %} - - {% endif %} -
+ {% if field.errors %} + + {% endif %} + {% endmacro %} This macro accepts a couple of keyword arguments that are forwarded to