peiTeX / qrbill

LaTeX package to create qrbills based on the Swiss standard
13 stars 3 forks source link

Trim extra spaces #22

Open TeXhackse opened 8 months ago

TeXhackse commented 8 months ago

On that topic, I also dealt with unexpected invisible trailing whitespaces in some issues which produced invalid QR codes (though here, I have to blame the online QR-bill validators because they were not able to show me that there was a trailing whitespace, only that the field CcyAmtDate.Amt was invalid) Thanks to a closed issue, I was able to figure out that using \qrbillsetdata*{ Amount=\mytotal,% this is expanded at the definition } would fix the issue, but still, somehow it seems to me that maybe trimming the whitespace automatically would be more elegant than having to break out part of the QRBill.

Originally posted by @Delok in https://github.com/peiTeX/qrbill/issues/21#issuecomment-1974885672

TeXhackse commented 8 months ago

I will have a look and check it I'd consider it a bug or a documentation issue, as the space also might be added by expansion.