Small change for more sensible line breaking in the output of get-model. (#1910)
authorFlorian Schanda <florian@schanda.org.uk>
Mon, 14 May 2018 12:43:42 +0000 (13:43 +0100)
committerAndrew Reynolds <andrew.j.reynolds@gmail.com>
Mon, 14 May 2018 12:43:42 +0000 (07:43 -0500)
src/printer/smt2/smt2_printer.cpp

index 27feea60eb3b65d1cfdcc65f94b12f450d3f4ff4..af51ccd45355f9fc0ce8d7fee0ee7c9d468216f6 100644 (file)
@@ -1951,7 +1951,7 @@ static void toStream(std::ostream& out,
       const Datatype& d = i->getDatatype();
       out << "(";
       toStream(out, d);
-      out << ")" << endl;
+      out << ")";
     }
     out << ")";
   }
@@ -1966,11 +1966,11 @@ static void toStream(std::ostream& out,
       const Datatype& d = i->getDatatype();
       out << "(" << maybeQuoteSymbol(d.getName()) << " ";
       toStream(out, d);
-      out << ")" << endl;
+      out << ")";
     }
     out << ")";
   }
-  out << ")";
+  out << ")" << endl;
 }
 
 static void toStream(std::ostream& out, const CommentCommand* c, Variant v)