From 4370c0944bd2922d7d1f2502deb9400eab5eaddd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Thu, 27 Jun 2024 23:20:31 +0800 Subject: [PATCH] Format: trim white spaces after truncation --- src/common/format.c | 1 + 1 file changed, 1 insertion(+) 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, "…"); }