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
|
width = headDef 0 $ map wbWidth ls
|
||||||
sep = WideBuilder (TB.singleton '\n') 0
|
sep = WideBuilder (TB.singleton '\n') 0
|
||||||
|
|
||||||
-- | Helper for showMixedAmountB to show a list of Amounts on multiple lines. This returns
|
-- | Helper for showMixedAmountB (and postingAsLines, ...) to show a list of Amounts on multiple lines.
|
||||||
-- the list of WideBuilders: one for each Amount, and padded/elided to the appropriate
|
-- This returns the list of WideBuilders: one for each Amount, and padded/elided to the appropriate width.
|
||||||
-- width. This does not honour displayOneLine: all amounts will be displayed as if
|
-- This does not honour displayOneLine; all amounts will be displayed as if displayOneLine were False.
|
||||||
-- displayOneLine were False.
|
|
||||||
showMixedAmountLinesB :: AmountDisplayOpts -> MixedAmount -> [WideBuilder]
|
showMixedAmountLinesB :: AmountDisplayOpts -> MixedAmount -> [WideBuilder]
|
||||||
showMixedAmountLinesB opts@AmountDisplayOpts{displayMaxWidth=mmax,displayMinWidth=mmin} ma =
|
showMixedAmountLinesB opts@AmountDisplayOpts{displayMaxWidth=mmax,displayMinWidth=mmin} ma =
|
||||||
map (adBuilder . pad) elided
|
map (adBuilder . pad) elided
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user