mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-16 16:28:09 +08:00
fix #262: merge 'check-empty-aot-while-format'
This commit is contained in:
@@ -557,11 +557,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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user