diff options
-rw-r--r-- | src/common/Formatter.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/Formatter.cc b/src/common/Formatter.cc index 4ef833a45f8..80b5ed0261d 100644 --- a/src/common/Formatter.cc +++ b/src/common/Formatter.cc @@ -91,6 +91,8 @@ void JSONFormatter::flush(std::ostream& os) { finish_pending_string(); os << m_ss.str(); + if (m_pretty) + os << "\n"; m_ss.clear(); m_ss.str(""); } @@ -290,6 +292,8 @@ void XMLFormatter::flush(std::ostream& os) { finish_pending_string(); os << m_ss.str(); + if (m_pretty) + os << "\n"; m_ss.clear(); m_ss.str(""); } |