瀏覽代碼

Added nl2br filter to the value, to display the correct content from textareas in multiple lines.

dirkbl 13 年之前
父節點
當前提交
1b19526811
共有 1 個文件被更改,包括 1 次插入1 次删除
  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>