mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-20 02:37:12 +03:00
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)
|
||||
status = if tstatus t then " *" else ""
|
||||
code = if length (tcode t) > 0 then printf " (%s)" $ tcode t else ""
|
||||
desc = ' ' : tdescription t
|
||||
comment = if null com then "" else " ; " ++ com where com = tcomment t
|
||||
desc = if null d then "" else " " ++ d where d = tdescription t
|
||||
comment = if null c then "" else " ; " ++ c where c = tcomment t
|
||||
showdate = printf "%-10s" . showDate
|
||||
showedate = printf "=%s" . showdate
|
||||
showpostings ps
|
||||
|
Loading…
Reference in New Issue
Block a user