Render newlines in error messages as <br> instead of literal \n
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
9289cd1450
commit
626afe487c
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@
|
|||
<div class="col-md-7">
|
||||
<div class="alert alert-danger">
|
||||
<h4 class="alert-heading">Something went wrong</h4>
|
||||
<p class="mb-0"><code>{{ message }}</code></p>
|
||||
<p class="mb-0"><code>{{ message | replace('\n', '<br>') | safe }}</code></p>
|
||||
</div>
|
||||
<a href="{{ url_for('index') }}" class="btn btn-outline-secondary btn-sm">Back to home</a>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue