diff options
| author | Georg Brandl <georg@python.org> | 2009-03-05 09:21:35 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2009-03-05 09:21:35 +0100 |
| commit | 1ea50bf165f0456df9d2181c366aecca73e96118 (patch) | |
| tree | 4008de659a759540024ae9df13df29acd6fc89ee /sphinx/builders/latex.py | |
| parent | aaf084a590dd2abcb6486a4a703e799011d09f08 (diff) | |
| download | sphinx-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.py | 9 |
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 |
