aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-15 18:06:03 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-15 18:06:03 -0400
commit269c98d106cffa80c2ee3c96b042500eccd8a935 (patch)
tree7d8a0c01768bcd7f7338c2ff3bfbd290b62bd7dd /examples
parented4fc11119459acfb1684607564dfe0820f5e05f (diff)
Don't save "" sections in INI reader
Diffstat (limited to 'examples')
-rw-r--r--examples/ini/ini.tm1
1 files changed, 0 insertions, 1 deletions
diff --git a/examples/ini/ini.tm b/examples/ini/ini.tm
index b0fd1caf..7598417f 100644
--- a/examples/ini/ini.tm
+++ b/examples/ini/ini.tm
@@ -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}/, " ")