From cacd4f33a12a46e5845fb68168bec7bfbb4c70b6 Mon Sep 17 00:00:00 2001 From: n0m1s Date: Sat, 11 Jan 2020 16:49:57 +0100 Subject: [PATCH] fix: newlines were discarded --- settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings.cpp b/settings.cpp index a226226..63c7523 100644 --- a/settings.cpp +++ b/settings.cpp @@ -14,7 +14,7 @@ bool is_whitespace(char const c) bool is_printable(char const c) { //cf. ASCII table - return c >= 0x20 && c <= 0x7E; + return c == '\n' || (c >= 0x20 && c <= 0x7E); } Settings::Settings()