svelte-mode icon indicating copy to clipboard operation
svelte-mode copied to clipboard

Doesn't understand JS formatting in on:click handler

Open nikolas opened this issue 3 years ago • 1 comments

If you have some extensive syntax inside a svelte on:click() function, svelte-mode formats it like this:

                        <span on:click={() =>
                            upBox("vector", {
                            a: "0.2",
                            b: "-0.3",
                            c: "0",
                            x: "0",
                            y: "0",
                            z: "0",
                            show: true,
                            })}>
                        </span>

It would be nice to indent this object properly.

nikolas avatar Sep 15 '22 22:09 nikolas

Thanks for reporting it. I'll check it out later.

leafOfTree avatar Sep 19 '22 03:09 leafOfTree