From a5fbdae72f53cc13db17a1b19f90bccfb4475822 Mon Sep 17 00:00:00 2001 From: Victor Fabre Date: Mon, 12 Nov 2018 13:20:18 -0200 Subject: [PATCH] fix #2368 (#2369) --- sapl/materia/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sapl/materia/views.py b/sapl/materia/views.py index 5fec4a2f7..476ff292b 100644 --- a/sapl/materia/views.py +++ b/sapl/materia/views.py @@ -2179,6 +2179,10 @@ class EtiquetaPesquisaView(PermissionRequiredMixin, FormView): if context['quantidade'] > 20: materias = materias[:20] + for m in materias: + if len(m.ementa) > 100: + m.ementa = m.ementa[0:99] + "[...]" + context['materias'] = materias return gerar_pdf_impressos(self.request, context,