Skip to content

Commit

Permalink
Black
Browse files Browse the repository at this point in the history
  • Loading branch information
amandine-sahl committed Mar 31, 2023
1 parent a40b9f3 commit a6a894c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server.py
Expand Up @@ -176,7 +176,8 @@ def after_login_method(response):
@evalcontextfilter
def nl2br(eval_ctx, value):
result = "\n\n".join(
"<p>%s</p>" % p.replace("\n", "<br>\n") for p in _paragraph_re.split(escape(value))
"<p>%s</p>" % p.replace("\n", "<br>\n")
for p in _paragraph_re.split(escape(value))
)
if eval_ctx.autoescape:
result = Markup(result)
Expand Down

0 comments on commit a6a894c

Please sign in to comment.