Closed marc2332 closed 2 months ago
Problem
Big example:
Smaller repro:
fn app() -> Element { rsx!( rect { height: "50%", width: "100%", onclick: |_| { rsx!( rect { height: "50%", width: "100%", a: "2", b: "3", d: "4", height: "50%", width: "100%", a: "2", b: "3", d: "4", } ); } } ) }
run dx fmt --file file.rs --split-line-attributes
dx fmt --file file.rs --split-line-attributes
turns into:
fn app() -> Element { rsx!( rect { height: "50%", width: "100%", onclick: |_| { rsx!( rect { height : "50%", width : "100%", a : "2", b : "3", d : "4", height : "50%", width : "100%", a : "2", b : "3", d : "4", } ); } } ) }
Expected behavior
Still break the line on nested macros.
Environment:
Problem
Big example:
Smaller repro:
run
dx fmt --file file.rs --split-line-attributes
turns into:
Expected behavior
Still break the line on nested macros.
Environment: