-
-
Notifications
You must be signed in to change notification settings - Fork 539
New issue
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
fix(format/html): make element children break if attributes break #5027
Conversation
[ | ||
// If the attribute group breaks, prettier always breaks the children as well. | ||
&if_group_breaks(&expanded_children).with_group_id(Some(attr_group_id)), | ||
// Otherwise, we can do whatever fits best for the children. | ||
&if_group_fits_on_line(&best_fitting![ | ||
format_args![flat_children], | ||
format_args![expanded_children] | ||
]) | ||
.with_group_id(Some(attr_group_id)) | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't seem to figure out why this sometimes doesn't emit content. The ordering of these lines also appears to change the outcome.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've pushed a somewhat hacky workaround for this bug in 6e4b40e.
CodSpeed Performance ReportMerging #5027 will not alter performanceComparing Summary
|
1c79995
to
a90247b
Compare
Summary
closes #5026
Test Plan
Added a snapshot test, and none of the other tests are affected.