diff --git a/CHANGES b/CHANGES index 68f9331ba4c..0bb266607fb 100644 --- a/CHANGES +++ b/CHANGES @@ -38,6 +38,7 @@ Bugs fixed * #9670: html: Fix download file with special characters * #9649: HTML search: when objects have the same name but in different domains, return all of them as result instead of just one. +* Fix bug ``.. code::`` not recognising ``:classes:`` option instead of ``:class:`` option. The new behaviour is only to accept ``:class:``. Testing -------- diff --git a/sphinx/directives/patches.py b/sphinx/directives/patches.py index 9a3034daea5..f2cb631f07e 100644 --- a/sphinx/directives/patches.py +++ b/sphinx/directives/patches.py @@ -154,7 +154,7 @@ def run(self) -> List[Node]: code = '\n'.join(self.content) node = nodes.literal_block(code, code, - classes=self.options.get('classes', []), + classes=self.options.get('class', []), force='force' in self.options, highlight_args={}) self.add_name(node)