mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
[processing] added support for multiline strings in scripts
This commit is contained in:
parent
7f0bc42ea5
commit
8fff180ac0
@ -187,6 +187,9 @@ class ScriptAlgorithm(GeoAlgorithm):
|
||||
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user