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: only replace double spaces on rte delta conversion #6652

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

tomivirkki
Copy link
Member

Description

Fixes a regression from #6651 where temporarily replacing all space characters in the HTML before delta conversion might change the semantics of the original HTML:

Example:

<pre spellcheck="false">code\n</pre>

would become invalid in case the space between the tag name and the attribute was replaced.

<pre__VAADIN_RICH_TEXT_EDITOR_SPACEspellcheck="false">code\n</pre>

This PR fixes the issue by making the logic not replace all space characters ( ) in the HTML but only double-spaces ( ).

Type of change

Bugfix

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.3.0.alpha1 and is also targeting the upcoming stable 24.3.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants