You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/rome_js_formatter/src/utils/jsx.rs
+9-6
Original file line number
Diff line number
Diff line change
@@ -309,8 +309,9 @@ where
309
309
Ok(builder.finish())
310
310
}
311
311
312
-
/// The builder removes [JsxChild::EmptyLine], [JsxChild::Newline], [JsxChild::Whitespace]
313
-
/// if a next element is [JsxChild::Whitespace]
312
+
/// The builder is used to:
313
+
/// 1. Remove [JsxChild::EmptyLine], [JsxChild::Newline], [JsxChild::Whitespace] if a next element is [JsxChild::Whitespace]
314
+
/// 2. Don't push a new element [JsxChild::EmptyLine], [JsxChild::Newline], [JsxChild::Whitespace] if previous one is [JsxChild::EmptyLine], [JsxChild::Newline], [JsxChild::Whitespace]
2: <divtooltip="A very long tooltip text that would otherwise make the attribute break onto the same line but it is not because of the single string layout"></div>;
618
613
7: tooltip="A very long tooltip text that would otherwise make the attribute break
0 commit comments