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: 🐛 handle multiple space rendering when using preserveWhitespace [] #531

Merged
merged 2 commits into from
Mar 4, 2024

Conversation

JinHao-L
Copy link
Contributor

@JinHao-L JinHao-L commented Feb 15, 2024

When using preserveWhitespace,   is inserted as a string instead of JSX character entity. It is hence not rendered as a whitespace. To fix this, we replace whitespace with nbsp's unicode equivalent \u00A0

Closes: #514

When using preserveWhitespace,   is inserted as a string instead of JSX character entity. It is hence not rendered as a whitespace. To fix this, we replace whitespace with nbsp's unicode equivalent

Closes: contentful#514
@JinHao-L
Copy link
Contributor Author

@YvesRijckaert Would appreciate if you can help review this MR, thanks in advance 💯

@YvesRijckaert YvesRijckaert changed the title fix: 🐛 handle multiple space rendering when using preserveWhitespace fix: 🐛 handle multiple space rendering when using preserveWhitespace [] Feb 15, 2024
@YvesRijckaert YvesRijckaert requested a review from a team February 15, 2024 15:57
Copy link
Contributor

@YvesRijckaert YvesRijckaert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks for your contribution, I'll have a look why the pr checks are failing

@JinHao-L
Copy link
Contributor Author

JinHao-L commented Mar 3, 2024

Hi @YvesRijckaert, I have updated the MR with the latest commits in master.

Looks like the workflow process has been updated, can help check if the gh actions issue has been fixed

@YvesRijckaert YvesRijckaert merged commit 982b21b into contentful:master Mar 4, 2024
2 of 3 checks passed
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.

  is inserted as string, not as JSX character entity when using preserveWhitespace
2 participants