From: Michael Stapelberg Date: Sat, 17 Dec 2011 11:16:34 +0000 (+0000) Subject: Bugfix: Skip leading whitespace in variable assignments (Thanks ben) X-Git-Tag: 4.1.1~19^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=acb3bdd05e369b760a07b5f6e6c181363a980102;p=i3%2Fi3 Bugfix: Skip leading whitespace in variable assignments (Thanks ben) Fixes: #577 --- diff --git a/src/cfgparse.y b/src/cfgparse.y index 7a6a7398..073ff241 100644 --- a/src/cfgparse.y +++ b/src/cfgparse.y @@ -479,6 +479,8 @@ void parse_file(const char *f) { v_value = strstr(value, "\t"); *(v_value++) = '\0'; + while (*v_value == '\t' || *v_value == ' ') + v_value++; struct Variable *new = scalloc(sizeof(struct Variable)); new->key = sstrdup(v_key);