Formatting with --stdin
and --rustfmt
adds additional empty lines
#92
Labels
bug
Something isn't working
--stdin
and --rustfmt
adds additional empty lines
#92
I did set up my rust-analyzer as described in the readme and formatting works, however when formatting that way it adds 2 newlines at the end of each file.
A quick test shows that formatting with
stdin
flag outputs new lines at the end. I guess that formatting the output of theleptosfmt
and piping that torustfmt
has a bug, keeping a newline. Here is a diff of the following commands:cat src/main.rs | leptosfmt --stdin -r
diff:
mod app; use app::*; use leptos::*; pub fn main() { _ = console_log::init_with_level(log::Level::Debug); console_error_panic_hook::set_once(); mount_to_body(|| { view! { <App/> } }); } +
Edit: It seems like multiple formats on the same file will add more empty lines
The text was updated successfully, but these errors were encountered: