diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2022-12-10 16:37:03 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-12-10 16:37:03 +0100 |
commit | 5b9b1e175b723ef1c7aceb1b4bf27534b2795805 (patch) | |
tree | ed6f986fc0b336cd1aea261b7525ac83819a323a /doc/docgen.py | |
parent | 9b93919b06c8a508940748125ea99029c162bc85 (diff) | |
download | weechat-5b9b1e175b723ef1c7aceb1b4bf27534b2795805.zip |
core: add color attributes "blink" and "dim" (half bright) (closes #1855)
Diffstat (limited to 'doc/docgen.py')
-rw-r--r-- | doc/docgen.py | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/doc/docgen.py b/doc/docgen.py index 0589395f2..3c4476d37 100644 --- a/doc/docgen.py +++ b/doc/docgen.py @@ -613,15 +613,21 @@ class AutogenDoc(): default_value = ('"%s"' % default_value.replace('"', '\\"')) elif opt_type == 'color': - values = _('a WeeChat color name (default, black, ' - '(dark)gray, white, (light)red, ' - '(light)green, brown, yellow, (light)blue, ' - '(light)magenta, (light)cyan), a terminal ' - 'color number or an alias; attributes are ' - 'allowed before color (for text color ' - 'only, not background): \"*\" for bold, ' - '\"!\" for reverse, \"/\" for italic, ' - '\"_\" for underline') + values = _( + 'a WeeChat color name (default, black, ' + '(dark)gray, white, (light)red, ' + '(light)green, brown, yellow, (light)blue, ' + '(light)magenta, (light)cyan), a terminal ' + 'color number or an alias; attributes are ' + 'allowed before color (for text color ' + 'only, not background): ' + '\"%\" for blink, ' + '\".\" for \"dim\" (half bright), ' + '\"*\" for bold, ' + '\"!\" for reverse, ' + '\"/\" for italic, ' + '\"_\" for underline' + ) self.write(f'* [[option_{config}.{section}.{option}]] ' f'*{config}.{section}.{option}*') self.write('** %s: pass:none[%s]', |