I’m writing and saving a script via the WebFig and running into a problem: my script sends an email, and I’d like to include the newline character \n so that the body text of the email appears on multiple lines. However, when I press “ok” or “apply” to save the script, the WebFig takes my \n as a cue to create a new line in the script body instead. Any suggestions?
try \n
If I run:
/tool e-mail send to=someone@somewhere.com body="Test Line 1 \r\n Test Line 2" subject="Test Newline"
from the command line, I get the correct result.
If I type:
/tool e-mail send to=someone@somewhere.com body="Test Line 1 \\r\\n Test Line 2" subject="Test Newline"
into the script source and click Apply, the text is modified and the following appears in the source:
/tool e-mail send to=someone@somewhere.com body="Test Line 1 \r\n Test Line 2" subject="Test Newline"
This does work.
However, I was hoping for something more permanent, because upon next modification to the script, I need to again add the leading backslashes, or when I click Apply I get:
/tool e-mail send to=someone@somewhere.com body="Test Line 1
Test Line 2" subject="Test Newline"
This of course prevents the e-mail from sending, which defeats the purpose of the script.
Maybe I’m submitting this to the wrong place - is this instead a feature request or bug report?