Question

How to send new line character in multi-line text parameter.


I am trying to pass a string as parameter the string has "\\n" as new line character. When I use fmeobjects.workspaceRunner.runWithParameters to pass the string the string is cutoff at the first line. I tried to escape the backslash but I got mixed results. The entire string was passed but the string contained the actual "\\n" in it. I need the new line character like this


2 replies

Badge +2

Did you try using the carriage return, form feed, or vertical tab?

Badge +10

Try a carriage return (\\r) instead of a line feed

Reply