Skip to content
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(template-compiler): styles containing newlines #4580

Merged
merged 2 commits into from
Sep 27, 2024

Conversation

nolanlawson
Copy link
Collaborator

Details

Fixes #4579

Pretty straightforward fix, just required using Regex dotAll (available in Node v8+).

Does this pull request introduce a breaking change?

  • 😮‍💨 No, it does not introduce a breaking change.

Does this pull request introduce an observable change?

  • 🔬 Yes, it does include an observable change.

Technically yes, but it also fixes a recent regression (#4579). Also I suspect this use case is extremely uncommon (newlines separating style declarations), and it probably didn't work in the past with non-static-optimized elements anyway due to the style normalization previously only being applied to non-static-optimized elements.

@nolanlawson nolanlawson requested a review from a team as a code owner September 27, 2024 17:27
@nolanlawson nolanlawson merged commit e8098e1 into master Sep 27, 2024
11 checks passed
@nolanlawson nolanlawson deleted the nolan/style-regress-fix branch September 27, 2024 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression in style attribute rendering when using a newline
3 participants