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 for styled space being removed #65

Merged

Conversation

RobertLevett
Copy link
Contributor

Fix for styled space being trimmed when the following word is styled differently, even when within a preserved parent.

@chrisbottin
Copy link
Owner

@RobertLevett the tests are failing, can you take a look?

@@ -134,5 +134,9 @@ describe('XML formatter', function () {
context('should collapse empty tags when forceSelfClosingEmptyTag=true', function () {
assertFormat('test/data15/xml*-input.xml', { forceSelfClosingEmptyTag: true });
});

context('should not remove space with style before differently stylised word when prettifying xml', function () {
Copy link
Owner

Choose a reason for hiding this comment

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

@RobertLevett can you move the files from data16 to data12 folder? We already have the same configuration to format using the same option {collapseContent: true}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do, just looking at test now too

Fix for styled space being trimmed when the following word is styled differently, even when within a preserved parent.
@chrisbottin chrisbottin merged commit b7de974 into chrisbottin:master Oct 23, 2023
2 checks passed
@chrisbottin
Copy link
Owner

Thanks @RobertLevett for your contribution.

The fix has been published with version 3.6.0

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