From 91b7cd637cf4ad164662fa412e57e90b6dfda29e Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Tue, 6 Aug 2024 15:37:10 +0000 Subject: [PATCH] feat [skip ci]: update single_include --- single_include/toml.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) {