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

indent error with pipe (|)? #151

Closed
unional opened this issue May 13, 2022 · 3 comments · Fixed by #152
Closed

indent error with pipe (|)? #151

unional opened this issue May 13, 2022 · 3 comments · Fixed by #152
Labels
bug Something isn't working

Comments

@unional
Copy link

unional commented May 13, 2022

abc:
  def:
    - |
      some message
      some message

Getting this error:

error  Expected indentation of 8 spaces but found 6 spaces  yml/indent

Is this correct? The formatter I use one VS Code yaml format the yaml to this.

Even if I try to change it to:

abc:
  def:
    - |
        some message
        some message

after format, it goes back to 6 spaces.

@ota-meshi
Copy link
Owner

Thank you for posting this issue.
It looks like a bug to me.

@ota-meshi ota-meshi added the bug Something isn't working label May 14, 2022
@unional
Copy link
Author

unional commented May 14, 2022

Thanks for the quick fix! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants