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:
Sei Lisa 2016-03-25 20:44:59 +01:00
parent daae0ec518
commit 14f70c93b4

View file

@ -867,6 +867,7 @@ def llCSV2List(s):
lastwascomma = False
lastidx = i+1
else:
lastwascomma = False
if c == u',':
lastwascomma = True
ret.append(s[lastidx:i])