{#if filename} {shortenPath(filename)} {/if} {#if language} {language} {/if} +{stats.added} -{stats.removed}
{#if diffLines.length > 20} {/if} {#if interactive} {/if}
{#each visibleLines as { line, idx } (idx)} {@const prevIdx = visibleLines[visibleLines.indexOf({ line, idx }) - 1]?.idx} {#if idx > 0 && prevIdx !== undefined && idx - prevIdx > 1}
{/if}
{line.lineNo.old ?? ''} {line.lineNo.new ?? ''} {#if line.type === 'added'}+{:else if line.type === 'removed'}-{:else}{/if} {line.text || '\u00A0'}
{/each}