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.
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