Fix for the bug introduced in 1477. The stuff that was added to CVC4ostream::operato...
authorTim King <taking@cs.nyu.edu>
Thu, 17 Mar 2011 15:23:53 +0000 (15:23 +0000)
committerTim King <taking@cs.nyu.edu>
Thu, 17 Mar 2011 15:23:53 +0000 (15:23 +0000)
src/util/output.h

index dd5007747f714b0e3ccad0f424df4cae099e0f1e..9efb4110e511edc21cc6f406989a2fe2c2ac633e 100644 (file)
@@ -169,10 +169,11 @@ public:
   CVC4ostream& operator<<(std::ostream& (*pf)(std::ostream&)) {
     if(d_os != NULL) {
       d_os = &(*d_os << pf);
-    }
-    if (pf == d_endl) {
-      for (unsigned i = 0; i < d_indent; ++ i) {
-        d_os = &(*d_os << '\t');
+
+      if (pf == d_endl) {
+        for (unsigned i = 0; i < d_indent; ++ i) {
+          d_os = &(*d_os << '\t');
+        }
       }
     }
     return *this;