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

"Align CSV Columns" shifts number with 4 spaces to the right #151

Open
prechy123 opened this issue Nov 18, 2023 · 3 comments
Open

"Align CSV Columns" shifts number with 4 spaces to the right #151

prechy123 opened this issue Nov 18, 2023 · 3 comments

Comments

@prechy123
Copy link

After using Align CSV Columns numbers are shifted to the right with 4 spaces, affecting when it is called in code.

@mechatroner
Copy link
Owner

Could you please clarify what do you mean by "affecting when it is called in code"? I also need an example of the current and expected behavior.
There is a special rule for numbers alignment (see #106), unlike non-number fields they are aligned to the right so that it is easier to compare the values.

@prechy123
Copy link
Author

Without Align CSV Columns

image

With Align CSV columns

image

It can easily be fixed by using strip(), but i think the extension should be able to take care of it,
it cost me several minutes of debugging

@mechatroner
Copy link
Owner

I guess I can add a config option that would tell if the numbers should be aligned to the right (default) or to the left like all other non-number fields.

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

2 participants