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

Do not align when number starts at first column. #53

Merged
merged 1 commit into from Jun 2, 2017

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
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.

None yet

2 participants