summaryrefslogtreecommitdiff
path: root/sphinx/builders/latex.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-03-05 09:21:35 +0100
committerGeorg Brandl <georg@python.org>2009-03-05 09:21:35 +0100
commit1ea50bf165f0456df9d2181c366aecca73e96118 (patch)
tree4008de659a759540024ae9df13df29acd6fc89ee /sphinx/builders/latex.py
parentaaf084a590dd2abcb6486a4a703e799011d09f08 (diff)
downloadsphinx-1ea50bf165f0456df9d2181c366aecca73e96118.tar.gz
Use standard ``file:line: warning: message`` format for warning messages.
Diffstat (limited to 'sphinx/builders/latex.py')
-rw-r--r--sphinx/builders/latex.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/sphinx/builders/latex.py b/sphinx/builders/latex.py
index 9fe7b8a5..96d70e3e 100644
--- a/sphinx/builders/latex.py
+++ b/sphinx/builders/latex.py
@@ -60,8 +60,8 @@ class LaTeXBuilder(Builder):
def init_document_data(self):
preliminary_document_data = map(list, self.config.latex_documents)
if not preliminary_document_data:
- self.warn('No "latex_documents" config value found; no documents '
- 'will be written.')
+ self.warn('no "latex_documents" config value found; no documents '
+ 'will be written')
return
# assign subdirs to titles
self.titles = []
@@ -121,8 +121,9 @@ class LaTeXBuilder(Builder):
includefile, self.env.get_doctree(includefile))
self.docnames.add(includefile)
except Exception:
- self.warn('%s: toctree contains ref to nonexisting '
- 'file %r' % (docname, includefile))
+ self.warn('toctree contains ref to nonexisting '
+ 'file %r' % includefile,
+ self.builder.env.doc2path(docname))
else:
sof = addnodes.start_of_file(docname=includefile)
sof.children = subtree.children