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) #1245

Merged
merged 13 commits into from Feb 17, 2022

Conversation

wfeldt
Copy link
Member

@wfeldt wfeldt commented Feb 17, 2022

Task

Port #1244 to SLE15-SP4/TW.

Original 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 increased (+0.006%) to 41.638% when pulling 24a59f7 on sw_20 into ae298a6 on master.

@wfeldt wfeldt merged commit f98532b into master Feb 17, 2022
@wfeldt wfeldt deleted the sw_20 branch February 17, 2022 15:28
@yast-bot
Copy link
Contributor

✔️ Public Jenkins job #359 successfully finished
✔️ Created OBS submit request #955663

@yast-bot
Copy link
Contributor

✔️ Internal Jenkins job #193 successfully finished
✔️ Created IBS submit request #265414

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