Skip to content

Commit 95b92c7

Browse files
committedDec 15, 2015
[processing] correctly export multiline strings as python parameters from modeler
fixes #13830
1 parent 7fc6b07 commit 95b92c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/plugins/processing/modeler/ModelerAlgorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def _toString(v):
133133
if isinstance(v, (ValueFromInput, ValueFromOutput)):
134134
return v.asPythonParameter()
135135
elif isinstance(v, basestring):
136-
return "'%s'" % v
136+
return "\\n".join(("'%s'" % v).splitlines())
Code has comments. Press enter to view.
137137
elif isinstance(v, list):
138138
return "[%s]" % ",".join([_toString(val) for val in v])
139139
else:

0 commit comments

Comments
 (0)
Please sign in to comment.