Skip to content

Commit

Permalink
don't print \or if only one search result
Browse files Browse the repository at this point in the history
  • Loading branch information
dwightguth committed Nov 27, 2024
1 parent 3a0b23d commit 7b3c203
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions runtime/util/ConfigurationPrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ void print_configurations(
ssize_t size = results.size();
if (size == 0) {
sfprintf(&w, "\\bottom{SortGeneratedTopCell{}}()");
} else if (size == 1) {
print_configuration_internal(&w, *results.begin(), nullptr, false, &state);
} else {
sfprintf(&w, "\\or{SortGeneratedTopCell{}}(");
size_t j = 0;
Expand Down

0 comments on commit 7b3c203

Please sign in to comment.