From 1d883716049b379fc91f870c2d9717913dd84af8 Mon Sep 17 00:00:00 2001 From: pagedown Date: Tue, 30 Nov 2021 18:41:20 +0800 Subject: [PATCH] Docs: separate and wrap each choices --- kitty/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/cli.py b/kitty/cli.py index 842fddaca..45d6dfafe 100644 --- a/kitty/cli.py +++ b/kitty/cli.py @@ -413,7 +413,7 @@ def seq_as_rst( if defval is not None: a(textwrap.indent(f'Default: :code:`{defval}`', ' ' * 4)) if opt.get('choices'): - a(textwrap.indent('Choices: :code:`{}`'.format(', '.join(sorted(opt['choices']))), ' ' * 4)) + a(textwrap.indent('Choices: {}'.format(', '.join(f':code:`{c}`' for c in sorted(opt['choices']))), ' ' * 4)) a('') text = '\n'.join(blocks)