diff --git a/src/event_table.cpp b/src/event_table.cpp index c7821de433188239c1c6ca3893ed1db6405e7ead..6b574079847c9477b2c8f3d8d1f28ae2b416d69e 100644 --- a/src/event_table.cpp +++ b/src/event_table.cpp @@ -20,6 +20,7 @@ //for get_event_system_for_event_id, to know if ZMQ #include <eventconsumer.h> +#include <regex> static const char __FILE__rev[] = __FILE__ " $Revision: 1.5 $"; @@ -1222,6 +1223,7 @@ void EventCallBack::push_event(Tango::EventData* ev) //e.ev_name = INTERNAL_ERROR; //e.type = -1; e.msg = o.str(); + e.msg = std::regex_replace(e.msg, std::regex(R"((\n)|(\t))"), " "); //match raw string "\n" or "\t" and replace with " " } } catch (string &err) {