Improve line stripping
This commit is contained in:
parent
30db62d7d5
commit
ffc63d19dc
1 changed files with 3 additions and 3 deletions
6
tab
6
tab
|
@ -51,7 +51,7 @@ def formatted_transaction(transaction, me, balance_after=None):
|
|||
to_account = TAP_ACCOUNT if issuer == "Tap" else FOOD_ACCOUNT
|
||||
|
||||
to_line = f"{to_account} {amount}"
|
||||
from_line = f"tab {assertion}".rstrip()
|
||||
from_line = f"tab {assertion}"
|
||||
|
||||
else:
|
||||
to_line = f"tab {amount} {assertion}"
|
||||
|
@ -60,8 +60,8 @@ def formatted_transaction(transaction, me, balance_after=None):
|
|||
|
||||
return "\n".join([
|
||||
header,
|
||||
"\t" + to_line,
|
||||
"\t" + from_line
|
||||
"\t" + to_line.rstrip(),
|
||||
"\t" + from_line.rstrip()
|
||||
])
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue