Closed wfeldt closed 2 years ago
:heavy_check_mark: Public Jenkins job #359 successfully finished :heavy_check_mark: Created OBS submit request #955663
:heavy_check_mark: Internal Jenkins job #193 successfully finished :heavy_check_mark: Created IBS submit request #265414
Task
Port https://github.com/yast/yast-yast2/pull/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 https://github.com/yast/yast-yast2/pull/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.