From 4a74f69c96a1f7a6745766be6883d93bc1a94794 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Wed, 26 Jun 2024 16:23:51 +0800 Subject: [PATCH] Doc: clearify that we don't support truncate multi-byte chars [ci skip] --- src/data/help_format.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/data/help_format.txt b/src/data/help_format.txt index 3fd6a9283..dbb960f45 100644 --- a/src/data/help_format.txt +++ b/src/data/help_format.txt @@ -11,6 +11,7 @@ See "fastfetch -h title-format" for all supported tags. In 2.17.0 or newer, a truncation length can be specified using syntax ':` For example: "--title-format '{user-name:5}'" will truncate user name into 5-length string. If '' is negative, an ellipsis … will be appended at the end when the original string is truncated. +Note: The string length is counted in raw bytes. Multi-byte unicode charactors and ANSI escape codes are not taken into account. If the value index is missing, meaning the placeholder is "{}", an internal counter sets the value index. This means that the format string "Values: {1} ({2})" is equivalent to "Values: {} ({})".