Fixed issue if you add an array in a filter attribute

This commit is contained in:
William DURAND 2012-04-13 12:51:09 +02:00
parent 1e178669b7
commit 3aec03f6c7
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ class MarkdownFormatter extends AbstractFormatter
$markdown .= sprintf("%s:\n\n", $name); $markdown .= sprintf("%s:\n\n", $name);
foreach ($filter as $key => $value) { foreach ($filter as $key => $value) {
$markdown .= sprintf(" * %s: %s\n", $key, $value); $markdown .= sprintf(" * %s: %s\n", $key, trim(json_encode($value), '"'));
} }
$markdown .= "\n"; $markdown .= "\n";

View File

@ -51,7 +51,7 @@
<td> <td>
<ul> <ul>
{% for key, value in infos %} {% for key, value in infos %}
<li><em>{{ key }}</em> : {{ value }}</li> <li><em>{{ key }}</em> : {{ value|json_encode|trim('"') }}</li>
{% endfor %} {% endfor %}
</ul> </ul>
</td> </td>