madhat2r / plaid2text

Python Scripts to export Plaid transactions and transform them into Ledger or Beancount syntax formatted files.
GNU General Public License v3.0
89 stars 19 forks source link

Trailing spaces make me sad #8

Closed xentac closed 8 years ago

xentac commented 8 years ago

{posting_account:<60} really shouldn't have the ":<60" in it because there's nothing at the end of the line.

Similarly, the transaction line would be way better without the trailing tags space if there are no tags:

{transaction_date} {cleared_character} "{payee}" "" {tags}

I'm sure the template supports that, but I'm not sure how.

madhat2r commented 8 years ago

Updated default template to remove ":<60". Also changed the way tags are handled. Now they are prefixed with a space if existent, allowing for no trailing spaces. See updated documentation for details.