1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 14:56:39 +02:00

doc: replace comma by underscore in name of option used in anchors

This commit is contained in:
Sébastien Helleu
2023-03-18 15:19:08 +01:00
parent 99ca276556
commit f7a6bd422a
+2 -1
View File
@@ -648,7 +648,8 @@ class AutogenDoc():
'\"/\" for italic, '
'\"_\" for underline'
)
self.write(f'* [[option_{config}.{section}.{option}]] '
option_esc = option.replace(',', '_')
self.write(f'* [[option_{config}.{section}.{option_esc}]] '
f'*{config}.{section}.{option}*')
self.write('** %s: pass:none[%s]',
_('description'), desc.replace(']', '\\]'))