Hi everyone, I'm encountering a formatting issue.
When I run command A to generate A.html, the output is missing thousands separators.
However, when I use command B to generate B.html, the thousands separators are displayed correctly.
What configuration or flags should I use with command A to ensure that A.html also includes thousands separators?
Thanks in advance!
command A : hledger balance assets:banks --value=then -X NT$ --empty --layout=bare -O html > A.html
A.html : https://meee.com.tw/ktL2Jij
command B : hledger incomestatement --value=then -X NT$ --empty --layout=bare --monthly -O html > B.html
B.html : https://meee.com.tw/FzorycT
Hi @joviwu. If those are really using the same input files, it's surprising - if you can reduce it to a minimal example, please report a bug or share it here.
But you can force it with -c '1,000.0 NT$' on the command line, or commodity 1,000.0 NT$ in the journal.
Hi Simonmic,
Thank you for your help.
Please find the minimal example in the attachment for your reference.
2025 for Hledger PTA.journal
Thanks for the interesting example you shared. If you prefer to delete it now, go ahead. Or if you are comfortable allowing it to be added to hledger's examples/ directory, let me know.
But I could not reproduce your issue. I tested back as far as hledger 1.28, and I saw thousands separators in all NT$ amounts for all reports.
Oh! Apologies, I forgot to use html output. I have opened https://github.com/simonmichael/hledger/issues/2584, thanks for the bug report.