Skip to content

Commit

Permalink
Added nl2br filter to the value, to display the correct content from …
Browse files Browse the repository at this point in the history
…textareas in multiple lines.
  • Loading branch information
dirkbloessl committed Feb 29, 2012
1 parent cf1005c commit 1b19526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/views/CRUD/base_show_field.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 1b19526

Please sign in to comment.