Skip to content

Commit

Permalink
[bot] run clang-format & amalgamation
Browse files Browse the repository at this point in the history
  • Loading branch information
johan-gson authored and github-actions[bot] committed Jan 6, 2025
1 parent c15d671 commit 559f6a3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions single_include/fkYAML/node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10530,6 +10530,12 @@ class basic_serializer {
serialize_node(seq_item, cur_indent, str);
str += "\n";
}
else if (seq_item.is_sequence() && seq_item.size() == 0) {
str += " []\n";
}
else if (seq_item.is_mapping() && seq_item.size() == 0) {
str += " {}\n";
}
else {
str += "\n";
serialize_node(seq_item, cur_indent + 2, str);
Expand Down Expand Up @@ -10581,6 +10587,12 @@ class basic_serializer {
serialize_node(*itr, cur_indent, str);
str += "\n";
}
else if (itr->is_sequence() && itr->size() == 0) {
str += " []\n";
}
else if (itr->is_mapping() && itr->size() == 0) {
str += " {}\n";
}
else {
str += "\n";
serialize_node(*itr, cur_indent + 2, str);
Expand Down

0 comments on commit 559f6a3

Please sign in to comment.