From 13ce1147fc69bbef65e5f35b218a60b24323983e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Fri, 1 Sep 2023 08:58:36 +0200 Subject: doc: fix alignment of command arguments in auto-generated file when command name contains wide chars --- src/core/wee-doc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/wee-doc.c b/src/core/wee-doc.c index 133d4979c..51fe5fa8f 100644 --- a/src/core/wee-doc.c +++ b/src/core/wee-doc.c @@ -317,7 +317,7 @@ doc_gen_user_commands (const char *path, const char *lang) HOOK_COMMAND(ptr_hook, command), TRANS(HOOK_COMMAND(ptr_hook, description))); - length = 1 + utf8_strlen (HOOK_COMMAND(ptr_hook, command)) + 2; + length = 1 + utf8_strlen_screen (HOOK_COMMAND(ptr_hook, command)) + 2; snprintf (format, sizeof (format), "%%-%ds%%s\n", length); ptr_args = TRANS(HOOK_COMMAND(ptr_hook, args)); first_line = 1; -- cgit v1.2.3