diff --git a/NEWS b/NEWS index 29cfa7cb1..5691c96ea 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,9 @@ New in spot 2.11.5.dev (not yet released) where thousands of different filenames can be created failed with "Too many open files". (Issue #534) + - Using --format=... on a tool that output formulas would force + the output on standard output, even when --output was given. + New in spot 2.11.5 (2023-04-20) diff --git a/bin/common_output.cc b/bin/common_output.cc index 4ab62a9aa..13b4daf0f 100644 --- a/bin/common_output.cc +++ b/bin/common_output.cc @@ -224,7 +224,7 @@ namespace } }; - class formula_printer final: protected spot::formater + class formula_printer final: public spot::formater { public: formula_printer(std::ostream& os, const char* format) @@ -392,6 +392,7 @@ output_formula(std::ostream& out, else { formula_with_location fl = { f, filename, linenum, prefix, suffix }; + format->set_output(out); format->print(fl, ptimer); } }