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

For loops cause issues with display: inline tags #89

Open
Ryhon0 opened this issue Jan 20, 2021 · 0 comments
Open

For loops cause issues with display: inline tags #89

Ryhon0 opened this issue Jan 20, 2021 · 0 comments

Comments

@Ryhon0
Copy link

Ryhon0 commented Jan 20, 2021

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

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

1 participant