summaryrefslogtreecommitdiff
path: root/sphinx
diff options
context:
space:
mode:
authorshimizukawa <shimizukawa@gmail.com>2014-10-09 23:53:33 +0900
committershimizukawa <shimizukawa@gmail.com>2014-10-09 23:53:33 +0900
commit5c2f6935b4083841c53b1c2f21d8c76208c7d69b (patch)
treee5e2dbc129446e1600db39103c2fbe5d11204073 /sphinx
parent24366f0f01d011d82dae0dd1d39514247d8b21ee (diff)
downloadsphinx-5c2f6935b4083841c53b1c2f21d8c76208c7d69b.tar.gz
fix trailing space and long line
Diffstat (limited to 'sphinx')
-rw-r--r--sphinx/writers/texinfo.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/sphinx/writers/texinfo.py b/sphinx/writers/texinfo.py
index 93d4d6aa..f0e4894b 100644
--- a/sphinx/writers/texinfo.py
+++ b/sphinx/writers/texinfo.py
@@ -1103,14 +1103,16 @@ class TexinfoTranslator(nodes.NodeVisitor):
def visit_caption(self, node):
if (isinstance(node.parent, nodes.figure) or
- (isinstance(node.parent, nodes.container) and node.parent.get('literal_block'))):
+ (isinstance(node.parent, nodes.container) and
+ node.parent.get('literal_block'))):
self.body.append('\n@caption{')
else:
self.builder.warn('caption not inside a figure.',
(self.curfilestack[-1], node.line))
def depart_caption(self, node):
if (isinstance(node.parent, nodes.figure) or
- (isinstance(node.parent, nodes.container) and node.parent.get('literal_block'))):
+ (isinstance(node.parent, nodes.container) and
+ node.parent.get('literal_block'))):
self.body.append('}\n')
def visit_image(self, node):