diff options
| author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-02-14 00:35:07 +0900 |
|---|---|---|
| committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-02-14 00:56:48 +0900 |
| commit | c8d172b340ff72f2121da83c25f051988824db3d (patch) | |
| tree | 6e7924e8a559fb2f502e878f454c0bbd9ca641d7 /sphinx/writers/texinfo.py | |
| parent | e00ec8d7f94f90643171cacdacb0b2a5754b182d (diff) | |
| download | sphinx-git-c8d172b340ff72f2121da83c25f051988824db3d.tar.gz | |
Fix typo
Diffstat (limited to 'sphinx/writers/texinfo.py')
| -rw-r--r-- | sphinx/writers/texinfo.py | 2 |
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']: |
