diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-15 18:06:03 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-15 18:06:03 -0400 |
| commit | 269c98d106cffa80c2ee3c96b042500eccd8a935 (patch) | |
| tree | 7d8a0c01768bcd7f7338c2ff3bfbd290b62bd7dd /examples/ini | |
| parent | ed4fc11119459acfb1684607564dfe0820f5e05f (diff) | |
Don't save "" sections in INI reader
Diffstat (limited to 'examples/ini')
| -rw-r--r-- | examples/ini/ini.tm | 1 |
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}/, " ") |
