Skip to content

Commit 0d15c6f

Browse files
committed
Also escape choices
1 parent f0b79f9 commit 0d15c6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kitty/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ def seq_as_rst(
528528
if defval is not None:
529529
a(textwrap.indent(f'Default: :code:`{escape_rst(str(defval))}`', ' ' * 4))
530530
if opt.get('choices'):
531-
a(textwrap.indent('Choices: {}'.format(', '.join(f':code:`{c}`' for c in sorted(opt['choices']))), ' ' * 4))
531+
a(textwrap.indent('Choices: {}'.format(', '.join(f':code:`{escape_rst(c)}`' for c in sorted(opt['choices']))), ' ' * 4))
532532
a('')
533533

534534
text = '\n'.join(blocks)

0 commit comments

Comments
 (0)