Skip to content

Conversation

lifepillar
Copy link
Contributor

I have changed the regexp to trigger the alignment only if there is a digit immediately before the cursor (as before) and the number is preceded by at least one space.

This is to avoid situations where a date (starting at the first column) is confused with a commodity to be aligned.

@kljohann
Copy link
Member

Could you add a comment inline explaining exactly that?

@lifepillar lifepillar force-pushed the dont-align-on-1st-col branch from d9ea62e to 69b138e Compare June 1, 2017 18:56
@lifepillar
Copy link
Contributor Author

Done.

@kljohann kljohann merged commit 7cb3e66 into ledger:master Jun 2, 2017
@kljohann
Copy link
Member

kljohann commented Jun 2, 2017

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants