This fixes a conflict between dx fmt and cargo fmt (rustfmt). Previously, dx fmt would add indentation whitespace to blank lines inside RSX blocks, but cargo fmt removes trailing whitespace from all lines. This made it impossible for code to satisfy both formatters. The fix skips adding indentation to empty lines in two places: 1. When indenting formatted RSX blocks inside expressions 2. When reassembling the final formatted output Fixes #5223 Co-authored-by: Dmitry Minkovsky <dminkovsky@gmail.com>
10 lines
90 B
R
10 lines
90 B
R
rsx! {
|
|
div {
|
|
span { "a" }
|
|
|
|
span { "b" }
|
|
|
|
span { "c" }
|
|
}
|
|
}
|