diff options
| author | Keewis <keewis@posteo.de> | 2020-08-18 15:47:53 +0200 |
|---|---|---|
| committer | Keewis <keewis@posteo.de> | 2020-08-18 15:47:53 +0200 |
| commit | 3c24021972b972fbfc282ed1772ff098f2b835b2 (patch) | |
| tree | ba72ac3cf66ee040e61a63bc2bccaa3237448c37 /sphinx/writers/latex.py | |
| parent | b69c5119b52f664c1b44a45ba627c487be7c3c63 (diff) | |
| parent | 9d48cb9798a1f2eea8a800689dde6648e260916f (diff) | |
| download | sphinx-git-3c24021972b972fbfc282ed1772ff098f2b835b2.tar.gz | |
Merge branch '3.x' into preprocess-other-sections
Diffstat (limited to 'sphinx/writers/latex.py')
| -rw-r--r-- | sphinx/writers/latex.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index 73a22a76b..b77202951 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -651,7 +651,7 @@ class LaTeXTranslator(SphinxTranslator): if len(node.children) != 1 and not isinstance(node.children[0], nodes.Text): logger.warning(__('document title is not a single Text node'), - location=(self.curfilestack[-1], node.line)) + location=node) if not self.elements['title']: # text needs to be escaped since it is inserted into # the output literally @@ -684,7 +684,7 @@ class LaTeXTranslator(SphinxTranslator): else: logger.warning(__('encountered title node not in section, topic, table, ' 'admonition or sidebar'), - location=(self.curfilestack[-1], node.line or '')) + location=node) self.body.append('\\sphinxstyleothertitle{') self.context.append('}\n') self.in_title = 1 @@ -1762,7 +1762,7 @@ class LaTeXTranslator(SphinxTranslator): hlcode = self.highlighter.highlight_block( node.rawsource, lang, opts=opts, linenos=linenos, - location=(self.curfilestack[-1], node.line), **highlight_args + location=node, **highlight_args ) if self.in_footnote: self.body.append('\n\\sphinxSetupCodeBlockInFootnote') |
