Open mpql opened 3 weeks ago
This is a stylistic difference rather than a bug. Your project has adopted a style rule that is valid but not necessary.
This is a stylistic difference rather than a bug. Your project has adopted a style rule that is valid but not necessary.
Neither the program ingesting my yaml nor yamllint
are my projects. That said, how do I tell yaml_emit
not to stylistically mangle my input?
Hey there! I appreciate the work y'all do, and wanted to report a probable bug behavior I found.
I am on PHP 8.3.13, using the 2.2.4 version of the yaml extension — each the latest stable version, as of this writing.
Given a file
input.yaml
(with line 6 being a blank line present, but omitted by GitHub):We can parse and emit said file with the following code:
rendering
output.yaml
(with line 6 again being a blank line):Note the newly incorrect indentation of the list item on line 4.
yamllint
throws an error for the same line.I've got a workaround on my end, though it's specific to my rather esoteric use case — but I figured I'd do my due diligence and report the issue.