diff options
author | Jakob Lykke Andersen <Jakob@caput.dk> | 2021-03-20 19:19:34 +0300 |
---|---|---|
committer | Jakob Lykke Andersen <Jakob@caput.dk> | 2021-04-12 20:06:44 +0300 |
commit | 98800be904eeb4aca33acaac60a06e42b181d0f3 (patch) | |
tree | fc4481530fd367cb7ab15b58dd24bc812363f72c /sphinx/writers | |
parent | e012c93f1b69d943fe481982dce6d9dcf317ed51 (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.py | 6 |
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 ############################################## |