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

Track indentation in yaml.Node #899

Open
rbren opened this issue Sep 15, 2022 · 1 comment
Open

Track indentation in yaml.Node #899

rbren opened this issue Sep 15, 2022 · 1 comment

Comments

@rbren
Copy link

rbren commented Sep 15, 2022

I'm really enjoying the ability to use yaml.Node to modify a YAML document while mostly preserving comments and formatting. The one big gap is the inability to preserve indentation.

I've found a couple related issues, but they don't quite get at the problem:

I would be happy to take a stab at implementing this if y'all would accept a PR (and maybe provide some guidance).

@Justinzobel
Copy link

Yes the inability to preserve existing indentation is certainly a problem.

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