Improve line stripping

This commit is contained in:
Midgard 2019-06-25 01:03:30 +02:00
parent 30db62d7d5
commit ffc63d19dc
Signed by: midgard
GPG key ID: 511C112F1331BBB4

6
tab
View file

@ -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()
])