-
Notifications
You must be signed in to change notification settings - Fork 18
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
Indentation size and blank lines #127
Comments
Hi! It's not possible to change the indention so far. I like the changes you've done on your fork—I would just move the indention parameter as a property inside YamlFileResourceOptions though. Blank lines can be configured with the YamlFileResourceOptions#numberOfLinesBeforeFunction but that's between properties and doesn't allow empty lines between comments. I hadn't realized this would be desired :) I don't have a good idea there besides adding another Function to the YamlFileResourceOptions, unless PathElement (the argument the existing function already takes) is changed to represent either a YAML element or a comment. If you agree I'd propose that you create a pull request for the indention issue, and for the second matter I'll come up with a solution and ask you for feedback. |
There you go I made the pull request with the suggestions you said. |
* Added indentation size to resource options * Using string builder for indent method instead * Temporary fix to get a new line before comments
@Ipsk Once again thanks for the PR! For the comment thing I have to say I like your solution and since you said it was all you need I'll not investigate it further, unless you'd want to configure it on a more general level. |
Hello! I wanted to ask if it's currently possible to change the indentation size (currently it's 4 spaces, I would like to make it 2) and to add a blank line to separate sections.
I managed to make this changes on my fork, but wanted to confirm if it was already possible or not because the way I did it seemed hacky.
The text was updated successfully, but these errors were encountered: