Browse Source

Fix #1305 (#1361)

Signed-off-by: Eliseu Egewarth <eliseuegewarth@gmail.com>
pull/1362/merge
Eliseu Egewarth 7 years ago
committed by Edward
parent
commit
ed1630cb25
  1. 2
      sapl/sessao/views.py
  2. 2
      sapl/templates/sessao/pauta_sessao_detail.html

2
sapl/sessao/views.py

@ -2268,7 +2268,7 @@ class PautaSessaoDetailView(DetailView):
tipo = TipoExpediente.objects.get(
id=e.tipo_id)
conteudo = sub(
'&nbsp;', ' ', strip_tags(e.conteudo))
'&nbsp;', ' ', strip_tags(e.conteudo.replace('<br/>', '\n')))
ex = {'tipo': tipo, 'conteudo': conteudo}
expedientes.append(ex)

2
sapl/templates/sessao/pauta_sessao_detail.html

@ -25,7 +25,7 @@
<tr>
<td>
<b>{{e.tipo}}: </b> <br />
<p style="text-indent: 50px;">{{e.conteudo|safe}}</p>
<p style="text-indent: 50px;">{{e.conteudo|safe|linebreaks}}</p>
</td>
</tr>
{% endfor %}

Loading…
Cancel
Save