-
-
Notifications
You must be signed in to change notification settings - Fork 322
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
1.31: Non-print-like reports are adding decimal marks #2115
Comments
This change in 1.31:
was intended to affect only print and print-like reports. Thanks for the report! Claim your https://hledger.org/REGRESSIONS.html#regression-bounty when convenient. As mentioned in chat, I plan to keep this behaviour for the print-like reports and revert it for the others, and document the following policy at hledger manual > PART 3: REPORTING CONCEPTS > Amount formatting:
Today I'm leaning toward not treating HTML output specially, so a print-like HTML report such as the journal view in hledger-web could show trailing decimal marks, like |
Rationale: we aim to be free of period/comma decimal mark bias, and to support arbitrary digit groups; and print-like reports show original journal precisions which can be inconsistent; so without the trailing decimal mark, print's HTML output could sometimes be hard for humans to read too. If you disagree, let me know. |
Hi @usaAmch, here's another report for which $100 bounty is due to you; I encourage you to claim it within the next week at https://hledger.org/REGRESSIONS.html#regression-bounty , or it will become a project donation. |
Hi @simonmichael , You can also take this one as a donation. Thanks for all the work you and the team have done with hledger! |
Thanks! |
Given that a commodity that uses thousand separators and no decimal places is declared, when running non-print-like reports (like
bal
,reg
,bs
), the output includes the decimal mark even thought it is not needed.Steps to reproduce
hledger -f test.journal bal
Expected Result
bal
report should showequity
amount as1,000 JPY
Current Result
bal
report showsequity
amount as1,000. JPY
, note the extra.
at the end of the amount.Extra Info
The text was updated successfully, but these errors were encountered: