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

do not strip surrounding white space in CDATA XML elements (bsc#1195910) #1244

Merged
merged 3 commits into from Feb 17, 2022

Conversation

wfeldt
Copy link
Member

@wfeldt wfeldt commented Feb 17, 2022

Task

Surrounding white space in some elements may be desired. Like in scripts or other file content.

Solution

Do not strip surrounding white space when reading XML CDATA elements. And create CDATA elements when generating XML if an element contains surrounding white space.

Note

This reworks #1243.

I did some checks and prior to SLE15-SP3 we did preserve all white space in CDATA elements. This also does not pose a problem in script elements. Leading white space is ok there.

So, this pull request fully restores the old behavior.

@coveralls
Copy link

coveralls commented Feb 17, 2022

Coverage Status

Coverage remained the same at 40.555% when pulling 74b6f7a on sw_11 into 81558cb on SLE-15-SP3.

Copy link
Contributor

@shundhammer shundhammer left a comment

Choose a reason for hiding this comment

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

LGTM

@wfeldt wfeldt merged commit eed423e into SLE-15-SP3 Feb 17, 2022
@wfeldt wfeldt deleted the sw_11 branch February 17, 2022 09:40
@yast-bot
Copy link
Contributor

✔️ Internal Jenkins job #6 successfully finished
✔️ Created IBS submit request #265371

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.

None yet

4 participants