diff --git a/templates/table/structure/display_structure.twig b/templates/table/structure/display_structure.twig index 58ff7528df..79bde39e7c 100644 --- a/templates/table/structure/display_structure.twig +++ b/templates/table/structure/display_structure.twig @@ -79,17 +79,17 @@ {{ attributes[rownum] }} {{ row['Null'] == 'YES' ? 'Yes'|trans : 'No'|trans }} - {% 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' -%} NULL - {% else %} + {%- else -%} {% trans %}None{% context %}None for default{% endtrans %} - {% endif %} + {%- endif -%} {% if show_column_comments %}