From 768223ba6709e34adbc7d66f6d042c39bc022621 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 30 Aug 2022 22:49:05 +0100 Subject: [PATCH] Add spacing around plusses in language dropdown It looks so much better! --- website/contrib/code_block/blocks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/contrib/code_block/blocks.py b/website/contrib/code_block/blocks.py index 4e225ca..4005faf 100644 --- a/website/contrib/code_block/blocks.py +++ b/website/contrib/code_block/blocks.py @@ -9,7 +9,7 @@ from wagtail.blocks import ChoiceBlock, StructBlock, StructValue, TextBlock def get_language_choices() -> Iterator[tuple[str, str]]: for name, _, _, _ in sorted(get_all_lexers()): - yield (name, name) + yield (name, name.replace("+", " + ")) class CodeStructValue(StructValue):