diff --git a/common/src/util.cpp b/common/src/util.cpp index d8c16540181c3204ac9d1c70f6a946191ff914e8..cc9a647cba59eddb561202fbc456d83b403cafbe 100644 --- a/common/src/util.cpp +++ b/common/src/util.cpp @@ -77,7 +77,7 @@ util::utf8string util::splitAsUtf8(std::string_view s) std::string util::shrink(const std::string & s, int printedSize) { - static const std::string filler = ".."; + static const std::string filler = "…"; if (printedLength(s) <= printedSize) return s; @@ -88,7 +88,7 @@ std::string util::shrink(const std::string & s, int printedSize) std::string begin, end; int nbLoop = 0; - while (printedLength(begin)+printedLength(end)+2 <= printedSize) + while (printedLength(begin)+printedLength(end)+printedLength(filler) <= printedSize) { result = begin + filler + end;