Skip to content

Commit

Permalink
Fix bug where a passed-through hex showed up in order template
Browse files Browse the repository at this point in the history
  • Loading branch information
jt-traub committed Sep 17, 2024
1 parent bb8416c commit 8970d40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text_report_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ void TextReportGenerator::output_template(ostream& f, const json& report, int te
if (report.contains("regions") && !report["regions"].empty()) {
for(const auto& region : report["regions"]) {
// Only output the region template if you have actual units in the region.
if (region.contains("present")) output_region_template(f, region, template_type, show_region_depth);
if (region.value("present", false)) output_region_template(f, region, template_type, show_region_depth);
}
}
f << "\n#end\n\n";
Expand Down

0 comments on commit 8970d40

Please sign in to comment.