We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The library make a wrong association betwen the element and the comment
it took comment AFTER the line and not the comment BEFORE the element
#import ruamel.yaml from ruyaml import YAML yaml_str = """ #comment1 key: value #comment2 key1: value 1 """ yaml = YAML() data = yaml.load(yaml_str) print(data.ca)
Comment(comment=[None, [CommentToken('#comment1\n', line: 1, col: 0)]], items={'key': [None, None, CommentToken('\n\n#comment2\n', line: 4, col: 0), None], 'key1': [None, None, CommentToken('\n\n', line: 5, col: 6), None]})
The text was updated successfully, but these errors were encountered:
FWIW I think there is a TODO in the code for this at
ruyaml/lib/ruyaml/parser.py
Line 906 in 54f84f8
Sorry, something went wrong.
No branches or pull requests
The library make a wrong association betwen the element and the comment
it took comment AFTER the line and not the comment BEFORE the element
The text was updated successfully, but these errors were encountered: