From ac4f9857ead3d1ac91f6175165a61eb9031f9c47 Mon Sep 17 00:00:00 2001 From: Ashod Nakashian Date: Tue, 3 May 2016 20:56:34 -0400 Subject: [PATCH] loolwsd: getAbbreviatedMessage adds no brackets Change-Id: Ic26feda6fa8e9e93548624f9d6b6fd84f085eb19 Reviewed-on: https://gerrit.libreoffice.org/24638 Reviewed-by: Ashod Nakashian Tested-by: Ashod Nakashian --- loolwsd/LOOLProtocol.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } };