Fix #640 - strip out blank spaces

This commit is contained in:
Ganesh Viswanathan 2019-09-04 13:17:17 -05:00
commit fb57d47421

View file

@ -212,7 +212,10 @@ proc multiSplit(s: string): seq[string] =
result.del(i)
# Huh, nothing to return? Return given input.
if len(result) < 1:
return @[s]
if s.strip().len != 0:
return @[s]
else:
return @[]
proc readPackageInfoFromNimble(path: string; result: var PackageInfo) =
var fs = newFileStream(path, fmRead)