-
Notifications
You must be signed in to change notification settings - Fork 0
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
Ability to change spacing before a comment #11
Comments
Thanks for the feedback. I'll look into it.
Le dim. 2 févr. 2020 à 01:04, Max Danilov <notifications@github.com> a
écrit :
… Hi there,
Really enjoying your tool, works very well!
One request though would be to be able to set spacing before comments in
the output.
Currently, it's always 4.
*Example*:
Input file:
---items:
- part_no: A4786 #comment
Output from yamkix:
items:
- part_no: A4786 #comment
ruamel places exactly 4 spaces before the #
Feature request:
I think it should be a tunable parameter, as e.g. yamllint has a default
of 2 spaces before the comment.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#11?email_source=notifications&email_token=AAB4F7SPERDOE7XMVTK4BETRAYEZRA5CNFSM4KOWJ3E2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IKL22VA>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB4F7XZOYKYF3N4XB2MJPLRAYEZRANCNFSM4KOWJ3EQ>
.
|
There doesn't seem to have a trivial fix, I'll have to contact the author of ruamel.yaml to see if something can be done |
I am working on this issue but I cannot get to the expected result for the moment :
|
Available in v0.6.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there,
Really enjoying your tool, works very well!
One request though would be to be able to set spacing before comments in the output.
Currently, the comments always seem to stay on their previous position, even if actual yaml code has been moved by formatting (because of ruamel I guess?)
Example:
Input file:
Output from yamkix:
Feature request:
I think it should be a tunable parameter, as e.g. yamllint has a default rule of 2 spaces before a comment.
Example:
The text was updated successfully, but these errors were encountered: