hledger/hledger-lib/Hledger
Simon Michael 0b380971f7 journal: require a decimal point in commodity/format/D directives
A commodity directive that doesn't specify the decimal point character
increases ambiguity and the chance of misparsing numbers, especially
as it overrides all style information inferred from the journal amounts.
In some cases it caused amounts with a decimal point to be parsed as if
with a digit group separator so 1.234 became 1234.

We could augment it with extra info from the journal amounts, when available,
but it would still be possible to be ambiguous, and that won't be obvious.

A commodity directive is what we recommend to nail down the style.
It seems the simple and really only way to do this reliably is to require
an explicit decimal point character. Most folks probably do this already.

Unfortunately, it makes another potential incompatiblity with ledger and
beancount journals. But the error message will be clear and easy to
work around.
2018-04-20 21:56:06 -07:00
..
Data journal: require a decimal point in commodity/format/D directives 2018-04-20 21:56:06 -07:00
Read journal: require a decimal point in commodity/format/D directives 2018-04-20 21:56:06 -07:00
Reports lib, app, web, ui: rename readJournalFile[s]WithOpts to readJournalFile, same for tryReader[s]WithOpts 2018-04-17 15:25:02 -07:00
Utils Use quoteIfNeeded in quoteIfSpaced. Fix escapeDoubleQuotes to escape 2018-04-12 12:04:20 -07:00
Data.hs cli: --forecast adds periodic transactions to reports 2017-11-26 14:57:41 +00:00
Query.hs cli: clarify smart dates with more examples; add support for YYYYMM 2018-04-04 17:45:23 +01:00
Read.hs lib, app, web: remove differences between command line and journal file aliases 2018-04-17 16:09:11 -07:00
Reports.hs lib: Implemented a testing context for the module MultiBalanceReports. 2017-07-15 08:02:03 +01:00
Utils.hs Use quoteIfNeeded in quoteIfSpaced. Fix escapeDoubleQuotes to escape 2018-04-12 12:04:20 -07:00