We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am running windows and found leptosfmt is changing file format from dos(CRLF) -> unix(LF). Snippet below. Ran command leptosfmt example.rs
leptosfmt
leptosfmt example.rs
use leptos::*; #[component] fn App() -> impl IntoView { view! { <h1>"Iteration"</h1> <h1>"UnIteration"</h1> } } fn main() { leptos::mount_to_body(|| view! { <App/> }) }
Before:
After:
One interesting thing, if the view! macro had only one component the file format is not being changed. Snippet below
view!
use leptos::*; #[component] fn App() -> impl IntoView { view! { <h1>"Iteration"</h1> } } fn main() { leptos::mount_to_body(|| view! { <App/> }) }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
I am running windows and found
leptosfmt
is changing file format from dos(CRLF) -> unix(LF).Snippet below. Ran command
leptosfmt example.rs
Before:
![image](https://private-user-images.githubusercontent.com/61220506/268969205-0e1d2aaf-2be0-4712-9eb7-b87cd87cd6aa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNTQ0ODQsIm5iZiI6MTczOTM1NDE4NCwicGF0aCI6Ii82MTIyMDUwNi8yNjg5NjkyMDUtMGUxZDJhYWYtMmJlMC00NzEyLTllYjctYjg3Y2Q4N2NkNmFhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDA5NTYyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk1NjE0MTI4NWFiNDkzZGI2N2VlYTU0NjE2Y2QwMGM4ZDMzMWM0MDg2N2U5ZDZmYmVjMGE2ZTJjMWI0NTRmMzgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.rnrmtXX4z6dowlXA9VWvFVP5QaL8Pc0yGi7rjetVisY)
After:
![image](https://private-user-images.githubusercontent.com/61220506/268969350-10808cab-18ab-4982-9bf0-b89896084fa5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNTQ0ODQsIm5iZiI6MTczOTM1NDE4NCwicGF0aCI6Ii82MTIyMDUwNi8yNjg5NjkzNTAtMTA4MDhjYWItMThhYi00OTgyLTliZjAtYjg5ODk2MDg0ZmE1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDA5NTYyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU3OGRmZGM2Yzg2MzNhZDQwYTU0OTEwYjY2OTExYWIxMmM0YzAxNzZlMzViMTk4YTY4YjRmYmJkYzYxYmJjYWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.JKEY8H5Yqjub4m1kExFjthaOAES7PrK9Ce4DMhrrRuk)
One interesting thing, if the
view!
macro had only one component the file format is not being changed. Snippet belowThe text was updated successfully, but these errors were encountered: