From ca68ab6c8a63767d0f6da723929a93ac868878c2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?= Date: Sun, 25 Jan 2026 19:52:59 +0000 Subject: [PATCH] doc: support TAB as a delimiter between --option and description * src/system.h (oputs_): Treat a single TAB as an option delimiter. Some zh translations use this delimiter format. --- src/system.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/system.h b/src/system.h index 80779640db..3695954db9 100644 --- a/src/system.h +++ b/src/system.h @@ -576,10 +576,11 @@ oputs_ (MAYBE_UNUSED char const* program, char const *option) /* Set highlighted text up to spacing after the full option text. Any single space is included in highlighted text, - double space or newline terminates the option text. */ + double space or TAB or newline terminates the option text. */ char const *desc_text = option_text + anchor_len; while (*desc_text && *desc_text != '\n' - && (! isspace (*desc_text) || ! isspace (*(desc_text + 1)))) + && (! isspace (*desc_text) + || (*desc_text != '\t' && ! isspace (*(desc_text + 1))))) desc_text++; /* write spaces before option text. */ -- 2.47.3