print: don't show a trailing space when description is blank
This commit is contained in:
parent
8980dd9336
commit
810c6a5dac
@ -72,8 +72,8 @@ showTransaction' elide effective t =
|
|||||||
| otherwise = showdate (tdate t) ++ maybe "" showedate (teffectivedate t)
|
| otherwise = showdate (tdate t) ++ maybe "" showedate (teffectivedate t)
|
||||||
status = if tstatus t then " *" else ""
|
status = if tstatus t then " *" else ""
|
||||||
code = if length (tcode t) > 0 then printf " (%s)" $ tcode t else ""
|
code = if length (tcode t) > 0 then printf " (%s)" $ tcode t else ""
|
||||||
desc = ' ' : tdescription t
|
desc = if null d then "" else " " ++ d where d = tdescription t
|
||||||
comment = if null com then "" else " ; " ++ com where com = tcomment t
|
comment = if null c then "" else " ; " ++ c where c = tcomment t
|
||||||
showdate = printf "%-10s" . showDate
|
showdate = printf "%-10s" . showDate
|
||||||
showedate = printf "=%s" . showdate
|
showedate = printf "=%s" . showdate
|
||||||
showpostings ps
|
showpostings ps
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user