From e52a0e9d28c67714bd2220a08895472bbf05dd51 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Sat, 31 Jul 2021 22:27:51 -0400 Subject: [PATCH] Less naive cookie processing Remove some unnecessary whitespace --- flaskr/templates/_formhelpers.html | 20 +++++++------- flaskr/templates/writing.html | 42 +++--------------------------- 2 files changed, 14 insertions(+), 48 deletions(-) diff --git a/flaskr/templates/_formhelpers.html b/flaskr/templates/_formhelpers.html index a058f0b..9289c12 100644 --- a/flaskr/templates/_formhelpers.html +++ b/flaskr/templates/_formhelpers.html @@ -1,12 +1,12 @@ {% macro render_field(field, extra="") %} -
{{ field.label }} -
{{ field(**kwargs)|safe }} - {% if field.errors %} - - {% endif %} -
+
{{ field.label }} +
{{ field(**kwargs)|safe }} +{% if field.errors %} + +{% endif %} +
{% endmacro %} diff --git a/flaskr/templates/writing.html b/flaskr/templates/writing.html index 0b20751..d81909e 100644 --- a/flaskr/templates/writing.html +++ b/flaskr/templates/writing.html @@ -5,46 +5,18 @@ {{ url_for('static', filename='styles_min.css') }}"> @@ -52,7 +24,6 @@

UnderCover

The secret cover letter generator

- {% from "_formhelpers.html" import render_field %}
@@ -64,15 +35,12 @@ {{ render_field(form.body, 'class=bigtext') }} {{ render_field(form.closingtext) }}
- {% if errors %}

Your letter has errors.

-

There is likely a typo in one of your variables (the {\blabla} bits).
Make sure each is spelled correctly, and has the correct brackets on either side

-

{% for error in errors %} {{ error }}
@@ -80,7 +48,6 @@

{% endif %} -
-