Skip to content
Permalink
Browse files

[processing] added support for multiline strings in scripts

  • Loading branch information
volaya committed Mar 27, 2014
1 parent 7f0bc42 commit 8fff180ac0b9a28003e212073a2102d9e8c35088
Showing with 3 additions and 0 deletions.
  1. +3 −0 python/plugins/processing/script/ScriptAlgorithm.py
@@ -187,6 +187,9 @@ def processParameterLine(self, line):
elif tokens[1].lower().strip().startswith('string'):
default = tokens[1].strip()[len('string') + 1:]
param = ParameterString(tokens[0], desc, default)
elif tokens[1].lower().strip().startswith('longstring'):
default = tokens[1].strip()[len('longstring') + 1:]
param = ParameterString(tokens[0], desc, default, multiline = True)
elif tokens[1].lower().strip().startswith('crs'):
default = tokens[1].strip()[len('crs') + 1:]
if not default:

0 comments on commit 8fff180

Please sign in to comment.
You can’t perform that action at this time.