summaryrefslogtreecommitdiff
path: root/doc/docgen.py
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2022-12-10 16:37:03 +0100
committerSébastien Helleu <flashcode@flashtux.org>2022-12-10 16:37:03 +0100
commit5b9b1e175b723ef1c7aceb1b4bf27534b2795805 (patch)
treeed6f986fc0b336cd1aea261b7525ac83819a323a /doc/docgen.py
parent9b93919b06c8a508940748125ea99029c162bc85 (diff)
downloadweechat-5b9b1e175b723ef1c7aceb1b4bf27534b2795805.zip
core: add color attributes "blink" and "dim" (half bright) (closes #1855)
Diffstat (limited to 'doc/docgen.py')
-rw-r--r--doc/docgen.py24
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]',