Skip to content

Commit

Permalink
[processing] added support for multiline strings in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Mar 27, 2014
1 parent 7f0bc42 commit 8fff180
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/plugins/processing/script/ScriptAlgorithm.py
Expand Up @@ -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:
Expand Down

0 comments on commit 8fff180

Please sign in to comment.