Skip to content

Commit

Permalink
fix #262: merge 'check-empty-aot-while-format'
Browse files Browse the repository at this point in the history
  • Loading branch information
ToruNiina committed Aug 6, 2024
2 parents 12c0f37 + 80c3e34 commit 63d9c04
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/toml11/serializer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 63d9c04

Please sign in to comment.