beancount-mode icon indicating copy to clipboard operation
beancount-mode copied to clipboard

beancount-align-numbers can be confused by transaction title.

Open falsifian opened this issue 4 years ago • 1 comments

If I put the following in a beancount-mode buffer, select it then run beancount-align-numbers,

2020-02-18 * "abc abc abc abc abc abc * 0.5 abc"
  Equity:A 1.00 CAD

then I get this:

2020-02-18 * "abc abc abc abc abc abc * 0.5 abc"
  Equity:A                               1.00 CAD

Without the "* 0.5", it keeps the 1.00 CAD closer to Equity:A, which is better. I'm not sure what exactly it is in that title that's confusing it. (I encountered something like this in a real life but changed the text for privacy.)

falsifian avatar Oct 13 '20 03:10 falsifian

This is definitely something frustrates me too. I do think however that a better future goes through a new parser that groks comments and that is able to rebuild the entire file (with comments), but with corrected alignment.

blais avatar Jun 24 '24 02:06 blais