Fix bug in llCSV2List when there's no space after comma but there's a space in the value.
E.g. llCSV2List(",A B") produced ["", "B"].
This commit is contained in:
@@ -867,6 +867,7 @@ def llCSV2List(s):
|
|||||||
lastwascomma = False
|
lastwascomma = False
|
||||||
lastidx = i+1
|
lastidx = i+1
|
||||||
else:
|
else:
|
||||||
|
lastwascomma = False
|
||||||
if c == u',':
|
if c == u',':
|
||||||
lastwascomma = True
|
lastwascomma = True
|
||||||
ret.append(s[lastidx:i])
|
ret.append(s[lastidx:i])
|
||||||
|
|||||||
Reference in New Issue
Block a user