From ccd17adffca720603cc445a0550d497764652dd8 Mon Sep 17 00:00:00 2001 From: nabijaczleweli Date: Wed, 10 Jan 2024 21:44:24 +0100 Subject: [PATCH] config: Allow tabs before = to facilitate alignment --- src/ini.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ini.c b/src/ini.c index bf29558..6029293 100644 --- a/src/ini.c +++ b/src/ini.c @@ -41,11 +41,12 @@ void parse_kvp(char *s, char **key, char **value) else *c = 0; - while (*++c == ' '); + while (*++c == ' ' || *c == '\t'); *value = c; return; case ' ': + case '\t': if (!last_space) last_space = c; break;