aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--butl/diagnostics.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/butl/diagnostics.cxx b/butl/diagnostics.cxx
index bdff3d8..4cd8515 100644
--- a/butl/diagnostics.cxx
+++ b/butl/diagnostics.cxx
@@ -17,7 +17,10 @@ namespace butl
{
if (!empty_)
{
- *diag_stream << os.str () << endl;
+ os.put ('\n');
+ *diag_stream << os.str ();
+ diag_stream->flush ();
+
empty_ = true;
if (epilogue_ != nullptr)