Properly skip spaces after exception list
Skip whitespace after obtaining the list of exceptions instead of skipping the next character unconditionally. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
parent
e27cf190d0
commit
93767ce29c
6
src/io.c
6
src/io.c
@ -526,7 +526,8 @@ void io_load_app(void)
|
|||||||
if (c == '!') {
|
if (c == '!') {
|
||||||
ungetc(c, data_file);
|
ungetc(c, data_file);
|
||||||
recur_exc_scan(&exc, data_file);
|
recur_exc_scan(&exc, data_file);
|
||||||
c = getc(data_file);
|
while ((c = getc(data_file)) == ' ') ;
|
||||||
|
ungetc(c, data_file);
|
||||||
} else if (c == '}') {
|
} else if (c == '}') {
|
||||||
while ((c = getc(data_file)) == ' ') ;
|
while ((c = getc(data_file)) == ' ') ;
|
||||||
ungetc(c, data_file);
|
ungetc(c, data_file);
|
||||||
@ -535,7 +536,8 @@ void io_load_app(void)
|
|||||||
} else if (c == '!') { /* endless item with exceptions */
|
} else if (c == '!') { /* endless item with exceptions */
|
||||||
ungetc(c, data_file);
|
ungetc(c, data_file);
|
||||||
recur_exc_scan(&exc, data_file);
|
recur_exc_scan(&exc, data_file);
|
||||||
c = getc(data_file);
|
while ((c = getc(data_file)) == ' ') ;
|
||||||
|
ungetc(c, data_file);
|
||||||
until.tm_year = 0;
|
until.tm_year = 0;
|
||||||
} else {
|
} else {
|
||||||
io_load_error(path_apts, line,
|
io_load_error(path_apts, line,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user