Browse Source

fix: newlines were discarded

master
n0m1s 6 years ago
parent
commit
cacd4f33a1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      settings.cpp

+ 1
- 1
settings.cpp View File

@ -14,7 +14,7 @@ bool is_whitespace(char const c)
bool is_printable(char const c) bool is_printable(char const c)
{ {
//cf. ASCII table //cf. ASCII table
return c >= 0x20 && c <= 0x7E;
return c == '\n' || (c >= 0x20 && c <= 0x7E);
} }
Settings::Settings() Settings::Settings()


Loading…
Cancel
Save