Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX][16.0] l10n_it_fatturapa_out: fix signle quote double escape #4243

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

michelerusti
Copy link
Contributor

@michelerusti michelerusti commented Jun 28, 2024

Per la issue #4244

Per delle ragioni che non mi sono chiare al 100%, dentro la _render() della versione 16.0, avviene questo doppio escape

In entrata ci sono i riferimenti ai record, quindi sono corretti (come lo sono a db) ma result dopo la render_template() risulta con questo doppio escape

Nel template viene chiamata la encode_for_export() al quale però arriva il valore dopo un solo escape (quindi giusto) e non è lei la colpevole

Nella 14.0 la _render() è piuttosto diversa e questo non capita

Se avete soluzioni migliori di "mettere un cerotto" come ho fatto sono tutto orecchi!

@michelerusti michelerusti force-pushed the 16.0-fix-l10n_it_fatturapa_out-unescape branch from acb274a to 8f2c9d2 Compare June 28, 2024 13:55
@michelerusti michelerusti marked this pull request as ready for review June 28, 2024 14:05
@francesco-ooops francesco-ooops linked an issue Jun 28, 2024 that may be closed by this pull request
2 tasks
Copy link
Contributor

@SirAionTech SirAionTech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grazie della PR!
Ho provato in locale giusto per assicurarmi che non venissero interpretate cose strane nel nuovo output, ma giustamente i tag vengono rappresentati:
image

Però in effetti la faccenda è oscura: è possibile che questo problema ci sia solo da quando visualizziamo l'anteprima in HTML invece che in PDF (7af02bf).

Puoi aggiungere un test per verificare che il file XML venga prodotto come ti aspetti? Potrebbe bastarti modificare l'indirizzo di uno degli XML nei test esistenti.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants