Skip to content

Commit 4370c09

Browse files
committed
Format: trim white spaces after truncation
1 parent a9df048 commit 4370c09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/common/format.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ void ffParseFormatString(FFstrbuf* buffer, const FFstrbuf* formatstr, uint32_t n
283283
if (buffer->length - oldLength > (uint32_t) truncLength)
284284
{
285285
ffStrbufSubstrBefore(buffer, oldLength + (uint32_t) truncLength);
286+
ffStrbufTrimRightSpace(buffer);
286287
if (ellipsis)
287288
ffStrbufAppendS(buffer, "…");
288289
}

0 commit comments

Comments
 (0)