Skip to content

Commit 4a74f69

Browse files
committed
Doc: clearify that we don't support truncate multi-byte chars [ci skip]
1 parent 18d36c5 commit 4a74f69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/data/help_format.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ See "fastfetch -h title-format" for all supported tags.
1111
In 2.17.0 or newer, a truncation length can be specified using syntax '<arg>:<trunc-length>`
1212
For example: "--title-format '{user-name:5}'" will truncate user name into 5-length string.
1313
If '<trunc-length>' is negative, an ellipsis … will be appended at the end when the original string is truncated.
14+
Note: The string length is counted in raw bytes. Multi-byte unicode charactors and ANSI escape codes are not taken into account.
1415

1516
If the value index is missing, meaning the placeholder is "{}", an internal counter sets the value index.
1617
This means that the format string "Values: {1} ({2})" is equivalent to "Values: {} ({})".

0 commit comments

Comments
 (0)