diff options
author | Leah Neukirchen <leah@vuxu.org> | 2023-10-26 15:12:10 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2023-10-26 15:12:10 +0200 |
commit | 1074c1614e218bf9b096837754ce424a48cbcc9e (patch) | |
tree | 544be2e14af20d4a54d7cc1aceb2517c3f9db4fc | |
parent | 03f0fa5f7cc859cb2f30f78c332be0a93515eafe (diff) | |
download | mico-1074c1614e218bf9b096837754ce424a48cbcc9e.tar.gz mico-1074c1614e218bf9b096837754ce424a48cbcc9e.tar.xz mico-1074c1614e218bf9b096837754ce424a48cbcc9e.zip |
mico-sort: add {} if needed
-rw-r--r-- | mico-sort.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mico-sort.c b/mico-sort.c index b070d67..533eea5 100644 --- a/mico-sort.c +++ b/mico-sort.c @@ -126,6 +126,10 @@ main() memcpy(name, line, start-line); name[start-line] = 0; + // move into normalize + if (!strchr(name, '{')) + strcat(name, "{}"); + // XXX normalize(line, start, name); // ts = ts / 1000; // XXX |