Fixed parsing for empty strings in lists getting dropped
Replaced block of code skipping empty strings in lists with:
New block of code that pops empty string values in the first item and last item of a token list if that token list was generated from a multiline list. All other empty string values in lists are preserved and not dropped..
Fixes: https://github.com/chimpler/pyhocon/issues/232 Related Issue: https://github.com/chimpler/pyhocon/issues/317
Testing results:
There should be error checking for invalid ",," in hocon lists, but that is a different issue. Right now those will be just be included as additional empty strings in a list.
https://getakka.net/articles/configuration/hocon.html
[1,2,3,,] is invalid because it has two trailing commas. [,1,2,3] is invalid because it has an initial comma. [1,,2,3] is invalid because it has two commas in a row.