*** Description of problem: When I'm trying to create the new config file using API which looks like: "Test\n\n\n\n" - then the last 4 x \n are lost. *** Version-Release number of selected component (if applicable): RHNS 5.4.1 *** How reproducible: See the attached script. *** Steps to Reproduce: 1. See the attached script. *** Actual results: The empty new lines are lost from the config files. *** Expected results: The empty lines should be preserved (they should not be changed). *** Additional info:
Created attachment 612067 [details] Reproducer
You have to base64 encode the content, if you want to preserve whitespace. *** This bug has been marked as a duplicate of bug 595500 ***