diff --git a/loolwsd/LOOLProtocol.cpp b/loolwsd/LOOLProtocol.cpp index a11d6d076..bdc32cd47 100644 --- a/loolwsd/LOOLProtocol.cpp +++ b/loolwsd/LOOLProtocol.cpp @@ -192,10 +192,10 @@ namespace LOOLProtocol // If first line is less than the length (minus newline), add eclipes. if (firstLine.size() < static_cast(length) - 1) { - return std::string('[' + firstLine + "]..."); + return firstLine + "..."; } - return std::string('[' + firstLine + ']'); + return firstLine; } };