Skip to content

Commit 0d5781c

Browse files
committed
Enable whitespace characers around values in the CSV file
A customer was suggesting that we should enable whitespace characters around the strings coming from the CSV file, and could use srtip() to get rid of them in the add-in
1 parent f1e4848 commit 0d5781c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ParameterIO.bundles/Contents/ParameterIO.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,11 @@ def writeParametersToFile(filePath):
189189
def updateParameter(design, paramsList, row):
190190
# get the values from the csv file.
191191
try:
192-
nameOfParam = row[0]
193-
unitOfParam = row[1]
194-
expressionOfParam = row[2]
192+
nameOfParam = row[0].strip()
193+
unitOfParam = row[1].strip()
194+
expressionOfParam = row[2].strip()
195195
try:
196-
commentOfParam = row[3]
196+
commentOfParam = row[3].strip()
197197
except:
198198
commentOfParam = ''
199199
except Exception as e:

0 commit comments

Comments
 (0)