From 68cde25c035b1376c4a689e3c54ae251be56ec14 Mon Sep 17 00:00:00 2001 From: cryptocode Date: Wed, 25 Sep 2019 14:29:41 +0200 Subject: [PATCH] Don't comment toml tables in generate_config (#2314) --- nano/lib/tomlconfig.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nano/lib/tomlconfig.hpp b/nano/lib/tomlconfig.hpp index a06c9b8a..8e610929 100644 --- a/nano/lib/tomlconfig.hpp +++ b/nano/lib/tomlconfig.hpp @@ -344,7 +344,7 @@ public: std::string line; while (std::getline (ss, line, '\n')) { - if (!line.empty () && line[0] != '#') + if (!line.empty () && line[0] != '#' && line[0] != '[') { line = "#" + line; }