diff --git a/src/common/format.c b/src/common/format.c index 8e1d8736c..5d1938a0d 100644 --- a/src/common/format.c +++ b/src/common/format.c @@ -283,6 +283,7 @@ void ffParseFormatString(FFstrbuf* buffer, const FFstrbuf* formatstr, uint32_t n if (buffer->length - oldLength > (uint32_t) truncLength) { ffStrbufSubstrBefore(buffer, oldLength + (uint32_t) truncLength); + ffStrbufTrimRightSpace(buffer); if (ellipsis) ffStrbufAppendS(buffer, "…"); }