From a87d0359c01972c8a3eb01b7ff887399626efae3 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sun, 19 Dec 2021 12:41:04 +0900 Subject: [PATCH] Close #9961: html: Support nested HTML elements in other HTML builders --- CHANGES | 1 + sphinx/builders/html/transforms.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 9d57f8349ab..ebe3aba0759 100644 --- a/CHANGES +++ b/CHANGES @@ -22,6 +22,7 @@ Features added this behavior with the ``--respect-module-all`` switch. * #9800: extlinks: Emit warning if a hardcoded link is replaceable by an extlink, suggesting a replacement. +* #9961: html: Support nested HTML elements in other HTML builders * #9815: html theme: Wrap sidebar components in div to allow customizing their layout via CSS * #9899: py domain: Allows to specify cross-reference specifier (``.`` and diff --git a/sphinx/builders/html/transforms.py b/sphinx/builders/html/transforms.py index cb9af5f2895..338c87b7f99 100644 --- a/sphinx/builders/html/transforms.py +++ b/sphinx/builders/html/transforms.py @@ -36,7 +36,7 @@ class KeyboardTransform(SphinxPostTransform): x """ default_priority = 400 - builders = ('html',) + formats = ('html',) pattern = re.compile(r'(?<=.)(-|\+|\^|\s+)(?=.)') multiwords_keys = (('caps', 'lock'), ('page' 'down'),