leptosfmt icon indicating copy to clipboard operation
leptosfmt copied to clipboard

Formatting is off

Open klautcomputing opened this issue 1 year ago • 3 comments

@bram209 as discussed on discord here is the weird formatting:

image

                <div class="flex gap-1 justify-center items-center w-full">
                    {result_string} <Show when=is_finished>
                        <div>{conclusion}</div>
                    </Show>
                </div>

You can find the whole file here: https://github.com/hiveboardgame/hive/blob/main/apis/src/components/molecules/game_row.rs

Thanks leex

klautcomputing avatar Aug 06 '24 18:08 klautcomputing

I don't know if this is related somehow but I observed that commenting out line macro_names = ["leptos::view, view"] # Macro names which will be formatted in leptosfmt.toml file ironically fixes formatting inside !view macro.

aldehydkrotonowy avatar Sep 27 '24 21:09 aldehydkrotonowy

I don't know if this is related somehow but I observed that commenting out line macro_names = ["leptos::view, view"] # Macro names which will be formatted in leptosfmt.toml file ironically fixes formatting inside !view macro.

Not sure where you get that line from, but macro_names should be ["leptos::view", "view"] and not ["leptos::view, view"].

bram209 avatar Sep 28 '24 10:09 bram209

Ah, I had old version which I copied some time ago, Probably I wouldn't notice this, thanks!

aldehydkrotonowy avatar Sep 28 '24 10:09 aldehydkrotonowy