Skip to content

For loops cause issues with display: inline tags #89

Description

@Ryhon0

The following code returns this HTML:

- foreach (i; 0..3)
   span #{i}
span A
<span>0</span>
<span>1</span>
<span>2</span><span>A</span>

Which look like this:
image

The <span> tag uses the inline display style, inline tags create a space between other tags if there's a new line after them.
This creates two issues:

  • For loops don't create a new line after the last item
  • There's no way (as far as I know) to write for loops that don't create new lines

There should some syntax for loops that would not create new lines and the bug where for loops don't create new lines should be fixed

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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