Format: trim white spaces after truncation

This commit is contained in:
李通洲
2024-06-27 23:20:31 +08:00
parent a9df048d49
commit 4370c0944b
+1
View File
@@ -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, "…");
}