summaryrefslogtreecommitdiff
path: root/sphinx/builders/latex/nodes.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-05-23 22:50:46 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-05-23 22:50:46 +0900
commit489d86d47094155c4334851a03abddfb25fc215a (patch)
treeaee62e282292009d8097019b4efcdb0950db13d8 /sphinx/builders/latex/nodes.py
parent51962c715c3fed63300c08b503cc5ff55c6c89b1 (diff)
downloadsphinx-git-489d86d47094155c4334851a03abddfb25fc215a.tar.gz
Refactor: Add captioned_literal_block node to simplify LaTeX writer
Diffstat (limited to 'sphinx/builders/latex/nodes.py')
-rw-r--r--sphinx/builders/latex/nodes.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/sphinx/builders/latex/nodes.py b/sphinx/builders/latex/nodes.py
index c79adbae4..32ac7c6a0 100644
--- a/sphinx/builders/latex/nodes.py
+++ b/sphinx/builders/latex/nodes.py
@@ -12,6 +12,11 @@
from docutils import nodes
+class captioned_literal_block(nodes.container):
+ """A node for a container of literal_block having a caption."""
+ pass
+
+
class footnotemark(nodes.Inline, nodes.Referential, nodes.TextElement):
"""A node represents ``\footnotemark``."""
pass