Svelte: curious whitespace bug

Created on 10 Jun 2019  路  2Comments  路  Source: sveltejs/svelte

REPL. I think it's behaving incorrectly when it inserts whitespace between each <span> element

<script>
    let message = 'the quick brown fox jumps over the lazy dog';
</script>

<div class="data">
    {#each message as char, i}
        <span>
            {char}
        </span>
    {/each}
</div>

<!-- uncomment next line to see something weird -->
<!-- wtf -->

<style>
    div {
        position: relative;
        font-family: monospace;
        font-size: 16px;
        max-width: 100px;
    }
</style>
bug

Most helpful comment

what are you the issue police

(if so, good, we need issue police)

All 2 comments

Rich, please. #713. This is literally the oldest open issue in the repo with the 'bug' label.

what are you the issue police

(if so, good, we need issue police)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

matt3224 picture matt3224  路  3Comments

1u0n picture 1u0n  路  3Comments

bestguy picture bestguy  路  3Comments

Rich-Harris picture Rich-Harris  路  3Comments

rob-balfre picture rob-balfre  路  3Comments