lib: Align postings to unnormalised amount widths.

This commit is contained in:
Stephen Morgan 2020-11-02 15:12:09 +11:00
parent 0bebda7313
commit dcb884c5ff
2 changed files with 9 additions and 9 deletions

View File

@ -260,7 +260,7 @@ postingAsLines elideamount onelineamounts pstoalignwith p = concat [
| null (amounts $ pamount p) = [""]
| otherwise = lines . fst . showMixedUnnormalised showAmount (Just amtwidth) Nothing False $ pamount p
where
amtwidth = maximum $ map (snd . showMixed showAmount (Just 12) Nothing False . pamount) pstoalignwith -- min. 12 for backwards compatibility
amtwidth = maximum $ 12 : map (snd . showMixedUnnormalised showAmount Nothing Nothing False . pamount) pstoalignwith -- min. 12 for backwards compatibility
(samelinecomment, newlinecomments) =
case renderCommentLines (pcomment p) of [] -> ("",[])