mirror of
https://github.com/simonmichael/hledger.git
synced 2025-01-05 18:13:12 +03:00
cc98ee39f7
The balance command's --format option (in single-column mode) can now adjust the rendering of multi-line strings, such as amounts with multiple commodities. To control this, begin the format string with one of: %_ - renders on multiple lines, bottom-aligned (the default) %^ - renders on multiple lines, top-aligned %, - render on one line, comma-separated Also the final total (and the line above it) now adapt themselves to a custom format.
60 lines
1.8 KiB
Haskell
60 lines
1.8 KiB
Haskell
{-|
|
|
|
|
The Hledger.Data library allows parsing and querying of C++ ledger-style
|
|
journal files. It generally provides a compatible subset of C++ ledger's
|
|
functionality. This package re-exports all the Hledger.Data.* modules
|
|
(except UTF8, which requires an explicit import.)
|
|
|
|
-}
|
|
|
|
module Hledger.Data (
|
|
module Hledger.Data.Account,
|
|
module Hledger.Data.AccountName,
|
|
module Hledger.Data.Amount,
|
|
module Hledger.Data.Commodity,
|
|
module Hledger.Data.Dates,
|
|
module Hledger.Data.Journal,
|
|
module Hledger.Data.Ledger,
|
|
module Hledger.Data.Posting,
|
|
module Hledger.Data.RawOptions,
|
|
module Hledger.Data.StringFormat,
|
|
module Hledger.Data.TimeLog,
|
|
module Hledger.Data.Transaction,
|
|
module Hledger.Data.Types,
|
|
tests_Hledger_Data
|
|
)
|
|
where
|
|
import Test.HUnit
|
|
|
|
import Hledger.Data.Account
|
|
import Hledger.Data.AccountName
|
|
import Hledger.Data.Amount
|
|
import Hledger.Data.Commodity
|
|
import Hledger.Data.Dates
|
|
import Hledger.Data.Journal
|
|
import Hledger.Data.Ledger
|
|
import Hledger.Data.Posting
|
|
import Hledger.Data.RawOptions
|
|
import Hledger.Data.StringFormat
|
|
import Hledger.Data.TimeLog
|
|
import Hledger.Data.Transaction
|
|
import Hledger.Data.Types
|
|
|
|
tests_Hledger_Data :: Test
|
|
tests_Hledger_Data = TestList
|
|
[
|
|
tests_Hledger_Data_Account
|
|
,tests_Hledger_Data_AccountName
|
|
,tests_Hledger_Data_Amount
|
|
,tests_Hledger_Data_Commodity
|
|
,tests_Hledger_Data_Dates
|
|
,tests_Hledger_Data_Journal
|
|
,tests_Hledger_Data_Ledger
|
|
,tests_Hledger_Data_Posting
|
|
-- ,tests_Hledger_Data_RawOptions
|
|
-- ,tests_Hledger_Data_StringFormat
|
|
,tests_Hledger_Data_TimeLog
|
|
,tests_Hledger_Data_Transaction
|
|
-- ,tests_Hledger_Data_Types
|
|
]
|