Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Lykke Andersen <Jakob@caput.dk>2021-03-20 19:19:34 +0300
committerJakob Lykke Andersen <Jakob@caput.dk>2021-04-12 20:06:44 +0300
commit98800be904eeb4aca33acaac60a06e42b181d0f3 (patch)
treefc4481530fd367cb7ab15b58dd24bc812363f72c /sphinx/writers
parente012c93f1b69d943fe481982dce6d9dcf317ed51 (diff)
Decl styling, make desc_inline node
Use the new node for cpp:expr
Diffstat (limited to 'sphinx/writers')
-rw-r--r--sphinx/writers/html5.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/sphinx/writers/html5.py b/sphinx/writers/html5.py
index e3a28f85d..1c81584e3 100644
--- a/sphinx/writers/html5.py
+++ b/sphinx/writers/html5.py
@@ -117,6 +117,12 @@ class HTML5Translator(SphinxTranslator, BaseTranslator):
def depart_desc_content(self, node: Element) -> None:
self.body.append('</dd>')
+ def visit_desc_inline(self, node: Element) -> None:
+ self.body.append(self.starttag(node, 'span', ''))
+
+ def depart_desc_inline(self, node: Element) -> None:
+ self.body.append('</span>')
+
# Nodes for high-level structure in signatures
##############################################