damdfe: fix informacoes do fisco#141
Merged
antoniospneto merged 1 commit intoEngenere:mainfrom Mar 27, 2026
Merged
Conversation
dc0e0df to
86f5935
Compare
Contributor
|
@CristianoMafraJunior se puder dar um rebase, obrigado! |
86f5935 to
900d9fd
Compare
antoniospneto
approved these changes
Mar 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@Escodoo HT01793
Esta PR melhora a renderização do DAMDFE no bloco “INFORMAÇÕES ADICIONAIS DE INTERESSE DO FISCO”, corrigindo o problema de conteúdo excedente no PDF.
Agora, o texto desse campo é limitado ao espaço disponível na página atual, sem estourar o layout e sem criar quebra automática para uma nova página nesse trecho específico. Para garantir que o corte respeite o comportamento real do PDF, a lógica de truncamento foi ajustada para usar a mesma regra de quebra de linha do multi_cell (via dry_run), evitando divergências entre estimativa e renderização final.
Além disso, o fixture
tests/fixtures/mdf-e_test_1.xmlfoi atualizado com dados fictícios em infAdFisco, preservando um conteúdo longo para validar cenários reais de limite de texto. Essa alteração facilita testes visuais e reproduzibilidade do comportamento, sem uso de dados sensíveis.Em resumo, a PR entrega: