diff options
Diffstat (limited to 'sphinx/writers/html.py')
-rw-r--r-- | sphinx/writers/html.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sphinx/writers/html.py b/sphinx/writers/html.py index ba2b758d8..af8b6d98d 100644 --- a/sphinx/writers/html.py +++ b/sphinx/writers/html.py @@ -20,6 +20,7 @@ from docutils import nodes from docutils.writers.html4css1 import Writer, HTMLTranslator as BaseTranslator from sphinx import addnodes +from sphinx.deprecation import RemovedInSphinx16Warning from sphinx.locale import admonitionlabels, _ from sphinx.util.images import get_image_size from sphinx.util.smartypants import sphinx_smarty_pants @@ -363,8 +364,8 @@ class HTMLTranslator(BaseTranslator): else: opts = {} - def warner(msg): - self.builder.warn(msg, (self.builder.current_docname, node.line)) + def warner(msg, **kwargs): + self.builder.warn(msg, (self.builder.current_docname, node.line), **kwargs) highlighted = self.highlighter.highlight_block( node.rawsource, lang, opts=opts, warn=warner, linenos=linenos, **highlight_args) @@ -688,8 +689,10 @@ class HTMLTranslator(BaseTranslator): self.body.append('</dd>\n') def visit_termsep(self, node): - warnings.warn('sphinx.addnodes.termsep will be removed at Sphinx-1.5', - DeprecationWarning) + warnings.warn('sphinx.addnodes.termsep will be removed at Sphinx-1.6. ' + 'This warning is displayed because some Sphinx extension ' + 'uses sphinx.addnodes.termsep. Please report it to ' + 'author of the extension.', RemovedInSphinx16Warning) self.body.append('<br />') raise nodes.SkipNode |