Don't save "" sections in INI reader

This commit is contained in:
Bruce Hill 2024-09-15 18:06:03 -04:00
parent ed4fc11119
commit 269c98d106

View File

@ -10,7 +10,6 @@ func parse_ini(path:Path)->{Text:{Text:Text}}:
text := path:read():or_exit("Could not read INI file: $\[31;1]$(path.text_content)$\[]")
sections := {:Text:@{Text:Text}}
current_section := @{:Text:Text}
sections:set("", current_section)
# Line wraps:
text = text:replace($/\{1 nl}{0+space}/, " ")