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

Is it possible to keep the comments in yaml? #276

Closed
owenzhao opened this issue Sep 19, 2020 · 2 comments
Closed

Is it possible to keep the comments in yaml? #276

owenzhao opened this issue Sep 19, 2020 · 2 comments

Comments

@owenzhao
Copy link

I am working on a config wizard of Clash. https://lancellc.gitbook.io/clash/clash-config-file/an-example-configuration-file
I believe it is more desirable to leave the comments along with the config parts. However, if I decode and encode with Yams, the comments are gone. It there any way to keep them?

@jpsim
Copy link
Owner

jpsim commented Sep 21, 2020

Yams is built around libyaml, and that's not something it currently supports: yaml/libyaml#42

@owenzhao
Copy link
Author

Yams is built around libyaml, and that's not something it currently supports: yaml/libyaml#42

Thank you for your reply. In this case, I have to just splitting and joining the yamls when encoding.

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