vtkPythonProgrammableFilter->SetParameter with multi line string does not work
Trying to set a multiline string via SetParameter for the programmable filter will not set the string correctly as it simply interpolates it into the script as oppose to escaping it first. This causes a syntax error.
Example of trying to set scalar_str
to hello world\nhello world
:
SyntaxError: invalid syntax
Traceback (most recent call last):
File "<string>", line 22, in <module>
NameError: name 'RequestData' is not defined
File "<string>", line 6
scalar_str = r'hello world
^
SyntaxError: EOL while scanning string literal
Traceback (most recent call last):
File "<string>", line 22, in <module>
NameError: name 'RequestData' is not defined