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

Allow empty lines in multi-line blocks #82

Closed
stefan-pdx opened this issue Nov 21, 2015 · 1 comment
Closed

Allow empty lines in multi-line blocks #82

stefan-pdx opened this issue Nov 21, 2015 · 1 comment

Comments

@stefan-pdx
Copy link

Hi,

I noticed that having empty lines in a multi-line block renders a Text bock not terminated with ||| exception.

Example:

{
  message: |||
    Hello

    World
  |||
}

(note the blank line has no spaces)

results in:

STATIC ERROR: test.jsonnet:2:12: Text block not terminated with |||

YAML on the other hand allows you to have empty lines without spaces for indentation. Example:

message: |
  Hello

  World
@sparkprime
Copy link
Contributor

Good point, and probably a one-line fix :)

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