mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-19 10:17:35 +03:00
dev: improve showMixedAmountLinesB doc
This commit is contained in:
parent
c9e9145318
commit
3f050d45a9
@ -855,10 +855,9 @@ showMixedAmountB opts ma
|
||||
width = headDef 0 $ map wbWidth ls
|
||||
sep = WideBuilder (TB.singleton '\n') 0
|
||||
|
||||
-- | Helper for showMixedAmountB to show a list of Amounts on multiple lines. This returns
|
||||
-- the list of WideBuilders: one for each Amount, and padded/elided to the appropriate
|
||||
-- width. This does not honour displayOneLine: all amounts will be displayed as if
|
||||
-- displayOneLine were False.
|
||||
-- | Helper for showMixedAmountB (and postingAsLines, ...) to show a list of Amounts on multiple lines.
|
||||
-- This returns the list of WideBuilders: one for each Amount, and padded/elided to the appropriate width.
|
||||
-- This does not honour displayOneLine; all amounts will be displayed as if displayOneLine were False.
|
||||
showMixedAmountLinesB :: AmountDisplayOpts -> MixedAmount -> [WideBuilder]
|
||||
showMixedAmountLinesB opts@AmountDisplayOpts{displayMaxWidth=mmax,displayMinWidth=mmin} ma =
|
||||
map (adBuilder . pad) elided
|
||||
|
Loading…
Reference in New Issue
Block a user