loolwsd: getAbbreviatedMessage adds no brackets

Change-Id: Ic26feda6fa8e9e93548624f9d6b6fd84f085eb19
Reviewed-on: https://gerrit.libreoffice.org/24638
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
This commit is contained in:
Ashod Nakashian 2016-05-03 20:56:34 -04:00 committed by Ashod Nakashian
parent 8b18038718
commit ac4f9857ea

View file

@ -192,10 +192,10 @@ namespace LOOLProtocol
// If first line is less than the length (minus newline), add eclipes.
if (firstLine.size() < static_cast<std::string::size_type>(length) - 1)
{
return std::string('[' + firstLine + "]...");
return firstLine + "...";
}
return std::string('[' + firstLine + ']');
return firstLine;
}
};