Bugfix: Skip leading whitespace in variable assignments (Thanks ben)
Fixes: #577
This commit is contained in:
parent
70e6ba1d0b
commit
acb3bdd05e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue