Commit eb68b613 authored by Rashad Kanavath's avatar Rashad Kanavath

failing test on radiometricindices with multi-line string

parent 3d66c493
......@@ -249,9 +249,11 @@ class OTBAlgorithm(QgsProcessingAlgorithm):
if 'epsg' in k and v.startswith('EPSG:'):
v = v.split('EPSG:')[1]
if isinstance(v, str) and '\n' in v:
v = v.split('\n')
if isinstance(v, list):
value = ''
for i in v:
for i in list(filter(None, v)):
value += '"{}" '.format(self.get_value(i))
else:
value = '"{}"'.format(self.get_value(v))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment