From ed1630cb25005e5bc2d2b4f23973c308e19980f7 Mon Sep 17 00:00:00 2001 From: Eliseu Egewarth Date: Tue, 8 Aug 2017 14:03:56 -0300 Subject: [PATCH] Fix #1305 (#1361) Signed-off-by: Eliseu Egewarth --- sapl/sessao/views.py | 2 +- sapl/templates/sessao/pauta_sessao_detail.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sapl/sessao/views.py b/sapl/sessao/views.py index 61cadbf71..96184dd59 100644 --- a/sapl/sessao/views.py +++ b/sapl/sessao/views.py @@ -2268,7 +2268,7 @@ class PautaSessaoDetailView(DetailView): tipo = TipoExpediente.objects.get( id=e.tipo_id) conteudo = sub( - ' ', ' ', strip_tags(e.conteudo)) + ' ', ' ', strip_tags(e.conteudo.replace('
', '\n'))) ex = {'tipo': tipo, 'conteudo': conteudo} expedientes.append(ex) diff --git a/sapl/templates/sessao/pauta_sessao_detail.html b/sapl/templates/sessao/pauta_sessao_detail.html index a16f86802..82cbb686a 100644 --- a/sapl/templates/sessao/pauta_sessao_detail.html +++ b/sapl/templates/sessao/pauta_sessao_detail.html @@ -25,7 +25,7 @@ {{e.tipo}}:
-

{{e.conteudo|safe}}

+

{{e.conteudo|safe|linebreaks}}

{% endfor %}