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

Prevent printing tagged render function on whitespace only text nodes #932

Merged
merged 9 commits into from
Jan 4, 2024

Conversation

MoustaphaDev
Copy link
Member

@MoustaphaDev MoustaphaDev commented Jan 2, 2024

Changes

#930 introduced a regression which broke a test added in #928, but we didn't catch that probably because we didn't update the branch before merging. This fixes the regression and updates tests

Testing

Update tests to account for recently merged changes

Docs

N/A bug fix

Copy link

changeset-bot bot commented Jan 2, 2024

🦋 Changeset detected

Latest commit: eb1d7bc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@astrojs/compiler Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@MoustaphaDev MoustaphaDev marked this pull request as draft January 2, 2024 21:06
@natemoo-re
Copy link
Member

Whoops, sorry about that! I probably should have merged these in any other order.

@MoustaphaDev
Copy link
Member Author

No worries! I'm working on this now (and getting weird issues where tests work locally and not on ci), but I'll finish the day soon so I'll probably only be able to get a fix by tomorrow.

@MoustaphaDev MoustaphaDev marked this pull request as ready for review January 3, 2024 09:48
@MoustaphaDev MoustaphaDev changed the title don't print render for whitespace-only text nodes Prevent printing tagged render function on whitespace only text nodes Jan 3, 2024
@natemoo-re natemoo-re merged commit 24e2886 into main Jan 4, 2024
5 checks passed
@natemoo-re natemoo-re deleted the fix/printer-space-regression branch January 4, 2024 18:25
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.

2 participants