Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not :LedgerAlign: amount moved inside account #43

Closed
artkpv opened this issue Aug 18, 2016 · 2 comments
Closed

Can not :LedgerAlign: amount moved inside account #43

artkpv opened this issue Aug 18, 2016 · 2 comments

Comments

@artkpv
Copy link
Contributor

artkpv commented Aug 18, 2016

Thanks for the great plugin!

Bug:

  1. Having:
2014/09/28 Received from btc-e.com
    Активы:Текущие активы:Bitcoin wallet - 100000000000000000000000000000000X     mBTC 113.3
    Активы:Текущие активы:btc-e.com
  1. Select and enter: :'<,'>LedgerAlign

  2. Result:

2014/09/28 Received from btc-e.com
    Активы:Текущие активы:Bitcoin wallet - 10000000mBTC 113.30000000000000000000000000X
    Активы:Текущие активы:btc-e.com

Notes. The same if \t used to separate. The same if " - " removed.

@crater2150
Copy link

Can confirm, this seems to happen, if the column set in g:ledger_align_at is too small. This is not only problematic with very long account names, but also with comments, if the decimal point in the amount is omitted. The line
Expenses:Foo €30 ; some long comment
is aligned so that the comment ends in the column given by g:ledger_align_at instead of the amount.

As a workaround, increase g:ledger_align_at (and don't omit the decimal point like me). It would be nice, if ledger.vim could automatically determine the align_at value based on the longest account name.

@alerque
Copy link
Member

alerque commented Jul 1, 2019

This bug was fixed thanks to @mildred's contribution merged at long last in #73.

@alerque alerque closed this as completed Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants