From 3cc2d2a252abadc1eef073d3918b410a9eab52d9 Mon Sep 17 00:00:00 2001
From: Michael Davis <michael.davis@cern.ch>
Date: Tue, 15 May 2018 17:37:00 +0200
Subject: [PATCH] [lpa-stream] Removes blank line after header

---
 cmdline/CtaAdminCmd.cpp | 2 ++
 cmdline/CtaAdminCmd.hpp | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/cmdline/CtaAdminCmd.cpp b/cmdline/CtaAdminCmd.cpp
index e9dc079582..15a97003c4 100644
--- a/cmdline/CtaAdminCmd.cpp
+++ b/cmdline/CtaAdminCmd.cpp
@@ -68,6 +68,7 @@ void IStreamBuffer<cta::xrd::Data>::DataCallback(cta::xrd::Data record) const
          default:
             throw std::runtime_error("Not implemented/received invalid stream data from CTA Frontend.");
       }
+      break;
 
       case Data::kAfSummaryItemFieldNumber : switch(record.af_summary_item().type())
       {
@@ -76,6 +77,7 @@ void IStreamBuffer<cta::xrd::Data>::DataCallback(cta::xrd::Data record) const
          default:
             throw std::runtime_error("Not implemented/received invalid stream data from CTA Frontend.");
       }
+      break;
 
       default:
          throw std::runtime_error("Received invalid stream data from CTA Frontend.");
diff --git a/cmdline/CtaAdminCmd.hpp b/cmdline/CtaAdminCmd.hpp
index e0935cfb98..ee497b841f 100644
--- a/cmdline/CtaAdminCmd.hpp
+++ b/cmdline/CtaAdminCmd.hpp
@@ -82,7 +82,7 @@ private:
    cta::xrd::Request m_request;                         //!< Protocol Buffer for the command and parameters
 
    static constexpr const char* const TEXT_RED    = "\x1b[31;1m";     //!< Terminal formatting code for red text
-   static constexpr const char* const TEXT_NORMAL = "\x1b[0m\n";      //!< Terminal formatting code for normal text
+   static constexpr const char* const TEXT_NORMAL = "\x1b[0m";        //!< Terminal formatting code for normal text
    static constexpr const char* const LOG_SUFFIX  = "CtaAdminCmd";    //!< Identifier for log messages
 };
 
-- 
GitLab