diff --git a/main.py b/main.py index e10ede5..3e2e2f2 100755 --- a/main.py +++ b/main.py @@ -48,7 +48,11 @@ def show_message() -> str: wiki_part2=wiki_part2, ) - return flask.render_template("show_message.html", msg=msg) + subject = f"Request to use your photo of {name} on Wikipedia" + + lines = msg.split("\n\n") + + return flask.render_template("show_message.html", subject=subject, lines=lines) if __name__ == "__main__": diff --git a/templates/message.jinja b/templates/message.jinja index a60e2e5..9469cfa 100644 --- a/templates/message.jinja +++ b/templates/message.jinja @@ -1,7 +1,5 @@ {# vim:ft=jinja #} -Request to use your photo of {{ name }} on Wikipedia - Hi, I wanted to get in touch regarding your photo of {{ name }}, which I came across on Flickr: diff --git a/templates/show_message.html b/templates/show_message.html index a6e49d1..503950a 100644 --- a/templates/show_message.html +++ b/templates/show_message.html @@ -1,11 +1,24 @@
- -{{ msg }}+
{{ p }}
+ {% endfor %} +