Browse Source

Fixes #2069 (#2070)

pull/2071/head 3.1.95
Edward 7 years ago
committed by GitHub
parent
commit
41d8ff45c3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      sapl/relatorios/templates/pdf_etiqueta_protocolo_gerar.py

6
sapl/relatorios/templates/pdf_etiqueta_protocolo_gerar.py

@ -98,7 +98,11 @@ def protocolos(lst_protocolos, dic_cabecalho):
tmp_data += '\t\t<para style="P2"><b>' + \
dic['natureza']
if dic['ident_processo']:
tmp_data += ' - ' + dic['ident_processo'] + '</b></para>\n'
# Limita o tamanho do texto para não "explodir" as etiquetas
descricao = dic['ident_processo'][:60]
if len(dic['ident_processo']) > 60:
descricao += '...'
tmp_data += ' - ' + descricao + '</b></para>\n'
else:
tmp_data += '</b></para>\n'

Loading…
Cancel
Save