google app engine - Print a Jinja2 list on a single line in a table element -
if have list [1,2,3,4,5,6]
it prints out 1, 2, 3, 4, 5, 6
how can print without line break between each 1, 2, 3, 4, 5, 6?
code except outputs in td
<tr> {% field in li %} {% if field not string , field iterable %} <td> {% item in field %} {{item}}{% if not loop.last %},{% endif %} {% endfor %} </td> {% else %} <td>{{ field }}</td> {% endif %} {% endfor %} </tr>
nvm, issue css template forcing line breaks. works expected.
Comments
Post a Comment