leptosfmt
leptosfmt copied to clipboard
Formatting is off
@bram209 as discussed on discord here is the weird formatting:
<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
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.
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 formattedinleptosfmt.tomlfile ironically fixes formatting inside!viewmacro.
Not sure where you get that line from, but macro_names should be ["leptos::view", "view"] and not ["leptos::view, view"].
Ah, I had old version which I copied some time ago, Probably I wouldn't notice this, thanks!