Remove spaces around the default value of a column

It could cause bugs

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2022-10-19 14:53:52 +02:00
parent e90e5b23bf
commit d67cb109b4
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -79,17 +79,17 @@
<td class="column_attribute text-nowrap">{{ attributes[rownum] }}</td>
<td>{{ row['Null'] == 'YES' ? 'Yes'|trans : 'No'|trans }}</td>
<td class="text-nowrap">
{% if row['Default'] is not null %}
{% if extracted_columnspec['type'] == 'bit' %}
{{ row['Default']|convert_bit_default_value }}
{% else %}
{{ row['Default'] }}
{% endif %}
{% elseif row['Null'] == 'YES' %}
{%- if row['Default'] is not null -%}
{%- if extracted_columnspec['type'] == 'bit' -%}
{{- row['Default']|convert_bit_default_value -}}
{%- else -%}
{{- row['Default'] -}}
{%- endif -%}
{%- elseif row['Null'] == 'YES' -%}
<em>NULL</em>
{% else %}
{%- else -%}
<em>{% trans %}None{% context %}None for default{% endtrans %}</em>
{% endif %}
{%- endif -%}
</td>
{% if show_column_comments %}
<td>