Skip to content
Myr

Fixed indentation of an example.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 976e792 · Browse files · 1 file+6 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−8 removed

  • other:+6 added−8 removed

1 file+6 added−8 removed

modified:docs/patterns/wtforms.rst+6 added-8 removed
71 unmodified lines
7273 {% macro render_field(field) %}74 <dt>{{ field.label }}75 <dd>{{ field(**kwargs)|safe }}76 {% if field.errors %}77 <ul class="errors">78 {% for error in field.errors %}79 <li>{{ error }}</li>80 {% endfor %}81 </ul>82 {% endif %}83 </dd>76 {% if field.errors %}77 <ul class="errors">78 {% for error in field.errors %}<li>{{ error }}{% endfor %}79 </ul>80 {% endif %}81 </dd>82 {% endmacro %}8384This macro accepts a couple of keyword arguments that are forwarded to85WTForm's field function that renders the field for us. They keyword
27 unmodified lines