Browse Source

Merge pull request #591 from dirkbl/patch-1

Added nl2br filter ...
Thomas 13 năm trước cách đây
mục cha
commit
efe4fa268a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Resources/views/CRUD/base_show_field.html.twig

+ 1 - 1
Resources/views/CRUD/base_show_field.html.twig

@@ -10,4 +10,4 @@ file that was distributed with this source code.
 #}
 
 <th>{% block name %}{{ admin.trans(field_description.label) }}{% endblock %}</th>
-<td>{% block field %}{{ value }}{% endblock %}</td>
+<td>{% block field %}{{ value|nl2br }}{% endblock %}</td>