summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2023-10-26 15:12:10 +0200
committerLeah Neukirchen <leah@vuxu.org>2023-10-26 15:12:10 +0200
commit1074c1614e218bf9b096837754ce424a48cbcc9e (patch)
tree544be2e14af20d4a54d7cc1aceb2517c3f9db4fc
parent03f0fa5f7cc859cb2f30f78c332be0a93515eafe (diff)
downloadmico-1074c1614e218bf9b096837754ce424a48cbcc9e.tar.gz
mico-1074c1614e218bf9b096837754ce424a48cbcc9e.tar.xz
mico-1074c1614e218bf9b096837754ce424a48cbcc9e.zip
mico-sort: add {} if needed
-rw-r--r--mico-sort.c4
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