Does pega support "\n" for newline? I want to add a newline to a property and I can't use "\r\n" because of requirement constraints. I tried "\n" on a java compiler and it worked. But in pega it is not adding a newline by using property-set method or java method.
Tried the same use case which you showed in the screenshots and the output is being stored with the new line functionality in the text file. As you are viewing the file content in Notepad you are not able to see the text in the new line, try to open it in advance editor like Notepad++ then you can view it as expected.