Skip to content

Allow empty lines in multi-line blocks #82

Closed
@stefan-pdx

Description

@stefan-pdx

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions