mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-10 14:23:57 +00:00
[common] option: prevent ascii filter from eating newlines
This commit is contained in:
parent
44bff58aa8
commit
21d86dd31d
1 changed files with 4 additions and 4 deletions
|
@ -397,10 +397,6 @@ bool option_load(const char * filename)
|
||||||
continue;
|
continue;
|
||||||
comment = false;
|
comment = false;
|
||||||
|
|
||||||
// ignore non-typeable ascii characters
|
|
||||||
if (c < 32 || c > 126)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
switch(c)
|
switch(c)
|
||||||
{
|
{
|
||||||
case '[':
|
case '[':
|
||||||
|
@ -508,6 +504,10 @@ bool option_load(const char * filename)
|
||||||
// fallthrough
|
// fallthrough
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
// ignore non-typeable ascii characters
|
||||||
|
if (c < 32 || c > 126)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (expectLine)
|
if (expectLine)
|
||||||
{
|
{
|
||||||
DEBUG_ERROR("Syntax error on line %d, expected new line", lineno);
|
DEBUG_ERROR("Syntax error on line %d, expected new line", lineno);
|
||||||
|
|
Loading…
Reference in a new issue