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:
parent
8b18038718
commit
ac4f9857ea
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue