fix new lines for #each:else

pull/16188/head
Manuel Serret 9 months ago
parent 8d732bc114
commit 452c997fbe

@ -503,9 +503,8 @@ const svelte_visitors = {
block(context, node.body);
if (node.fallback) {
// TODO new lines
context.write('{:else}');
context.visit(node.fallback);
block(context, node.fallback);
}
context.write('{/each}');

@ -12,4 +12,6 @@
{#each todos as todo}
<p>{todo.text}</p>
{:else}<p>No tasks today!</p>{/each}
{:else}
<p>No tasks today!</p>
{/each}

Loading…
Cancel
Save