return *this;
}
+ Printer &SetAlwaysOpenDetails(bool value = true) {
+ should_always_open = value;
+ return *this;
+ }
+
Printer &SetTitleAsType() {
set_object_name_as_type = true;
return *this;
}
case (OutputType::html):
out << std::string(static_cast<size_t>(indents), '\t');
- if (set_details_open) {
+ if (set_details_open || should_always_open) {
out << "<details open>";
set_details_open = false;
} else {
}
case (OutputType::html):
out << std::string(static_cast<size_t>(indents), '\t');
- if (set_details_open) {
+ if (set_details_open || should_always_open) {
out << "<details open>";
set_details_open = false;
} else {
// open <details>
bool set_details_open = false;
+ // always open <details>
+ bool should_always_open = false;
+
// make object titles the color of types
bool set_object_name_as_type = false;