summaryrefslogtreecommitdiff
path: root/sphinx/writers/texinfo.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-02-14 00:35:07 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-02-14 00:56:48 +0900
commitc8d172b340ff72f2121da83c25f051988824db3d (patch)
tree6e7924e8a559fb2f502e878f454c0bbd9ca641d7 /sphinx/writers/texinfo.py
parente00ec8d7f94f90643171cacdacb0b2a5754b182d (diff)
downloadsphinx-git-c8d172b340ff72f2121da83c25f051988824db3d.tar.gz
Fix typo
Diffstat (limited to 'sphinx/writers/texinfo.py')
-rw-r--r--sphinx/writers/texinfo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/writers/texinfo.py b/sphinx/writers/texinfo.py
index 0f3137677..ede48ec60 100644
--- a/sphinx/writers/texinfo.py
+++ b/sphinx/writers/texinfo.py
@@ -247,7 +247,7 @@ class TexinfoTranslator(SphinxTranslator):
title = self.settings.title # type: str
if not title:
title_node = self.document.next_node(nodes.title)
- title = (title and title_node.astext()) or '<untitled>'
+ title = (title_node and title_node.astext()) or '<untitled>'
elements['title'] = self.escape_id(title) or '<untitled>'
# filename
if not elements['filename']: