jmousavi
5 years agoNew Contributor
How to write GET request content to a file with new lines instead of \n characters
I am trying to get an expression library from the Github API and save the content into a file in Snaplogic. When I get the content from the GET snap, it has \n characters and doesn’t recognize them as actual new lines. I then use the Width Formatter snap in order to get Snaplogic to recognize the \n characters as new lines. However, once I pass this into the File Writer snap, the file that was saved has no new lines, and the entire expression library is on one line.
Do you know how I can get Snaplogic to save the file with the new lines, formatted correctly?