Display table comment as preformatted text

This way line breaks are not lost when displaying the comment.

Signed-off-by: Maximilian Krög <maximilian.kroeg@geocept.com>
This commit is contained in:
Maximilian Krög 2025-11-14 16:34:56 +01:00
parent 47599015fd
commit 7ec6499fc3
No known key found for this signature in database
GPG Key ID: 093352DE4ADAEA2C
2 changed files with 4 additions and 5 deletions

View File

@ -13,7 +13,8 @@
<div>
<h2>{{ table.name }}</h2>
{% if table.comment is not empty %}
<p>{% trans 'Table comments:' %} <em>{{ table.comment }}</em></p>
{% trans 'Table comments:' %}
<em><pre>{{ table.comment }}</pre></em>
{% endif %}
<table class="table table-striped align-middle">

View File

@ -2,10 +2,8 @@
<fieldset class="pma-fieldset">
<legend>{% trans 'Information' %}</legend>
{% if showtable['TABLE_COMMENT'] %}
<p>
<strong>{% trans 'Table comments:' %}</strong>
{{ showtable['TABLE_COMMENT'] }}
</p>
<strong>{% trans 'Table comments:' %}</strong>
<em><pre>{{ showtable['TABLE_COMMENT'] }}</pre></em>
{% endif %}
<a id="showusage"></a>