-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
#comment
parsed as incorrectly indented string in root block-scalar
#547
Labels
bug
Something isn't working
Comments
Yeah, there's something odd going on here. Probably to do with the -1 indent level that unindented nodes are considered to have. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
An error occurs when a
#comment
is one outdented than the (root level) block-scalar indentation-indicator indicatesBlock scalar lines must not be less indented than their explicit indentation indicator
To Reproduce
Expected behaviour
#comment 4
should be parsed ascomment
, not as part of the multi-line stringVersions:
yaml
:2.4.2
Additional context
![image](https://private-user-images.githubusercontent.com/33529441/335855542-4e97af2d-075a-4210-890e-a206acd1e359.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ0MzU2NjYsIm5iZiI6MTcyNDQzNTM2NiwicGF0aCI6Ii8zMzUyOTQ0MS8zMzU4NTU1NDItNGU5N2FmMmQtMDc1YS00MjEwLTg5MGUtYTIwNmFjZDFlMzU5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIzVDE3NDkyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZkMTAxN2Y3YmVlODc2YjJlOTBjMjczNmZkMzY0MWI0ZWVmZGMxZjg2MWJmZjU2MjU2ZTAwMWJiMWIyMTdjNjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.eO_tLVZnvAMH_d6x4OtiMAvEwkCCxcWrBZRXHFPqJwY)
![image](https://private-user-images.githubusercontent.com/33529441/335855543-cc187ddb-f1ef-4020-b2e2-68c419674b78.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ0MzU2NjYsIm5iZiI6MTcyNDQzNTM2NiwicGF0aCI6Ii8zMzUyOTQ0MS8zMzU4NTU1NDMtY2MxODdkZGItZjFlZi00MDIwLWIyZTItNjhjNDE5Njc0Yjc4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIzVDE3NDkyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThjOTY2MjZlMzg4YzNiYWQ1OTg4Y2EyZTRiMTljMjFmYTU2NWY0YTAwOGQ1YzJjYTE0NjRmNDhjYzI3NjQ2ZWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Ygsl_WLxXmwYfjb5nILAZv6f_J1zxNlMywy8n6P23f4)
The text was updated successfully, but these errors were encountered: