bram209 / leptosfmt

A formatter for the leptos view! macro
Apache License 2.0
272 stars 29 forks source link

Do not format the raw string literals #82

Closed wcshds closed 1 year ago

wcshds commented 1 year ago

Currently leptosfmt replaces all raw string literals in the view macro with normal strings.

As a result,

view! { <p>r#"some" string"#</p> }

will become

view! { <p>"some" string"</p> }

Obviously, the formatted code is incorrect。