Skip to content

Always disregard blank lines in template #65

@jmcnevin

Description

@jmcnevin

I am seeing some issues with how templates are parsed when blank lines are present.

This:

div.content

  div.inner-content Hello!

will generate:

<div class="content"></div>
<div class="inner-content">Hello!</div>

whereas this:

div.content
  div.inner-content Hello!

will generate:

<div class="content">
  <div class="inner-content">Hello!</div>
</div>

Along these same lines, I've noticed that a blank line immediately following an each statement will lose the variable scope:

each $x in Collection

  div.row #{$x.Name}

This will throw an error undefined variable "$x"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions