diff --git a/single_include/toml.hpp b/single_include/toml.hpp index 8e19e88..9d88f54 100644 --- a/single_include/toml.hpp +++ b/single_include/toml.hpp @@ -16494,11 +16494,16 @@ class serializer } } } - if(this->force_inline_ && f == array_format::array_of_tables) { f = array_format::multiline; } + if(a.empty() && f == array_format::array_of_tables) + { + f = array_format::oneline; + } + + // -------------------------------------------------------------------- if(f == array_format::array_of_tables) {