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

clitetailor picture clitetailor  路  3Comments

st-schneider picture st-schneider  路  3Comments

robnagler picture robnagler  路  3Comments

sskyy picture sskyy  路  3Comments

angelozehr picture angelozehr  路  3Comments