mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
#157: fix make check.
This commit is contained in:
parent
e02e828cbe
commit
ef01782f42
2
Makefile
2
Makefile
@ -9,7 +9,7 @@ all: clean-pyc check test
|
|||||||
check:
|
check:
|
||||||
@$(PYTHON) utils/check_sources.py -i sphinx/style/jquery.js \
|
@$(PYTHON) utils/check_sources.py -i sphinx/style/jquery.js \
|
||||||
-i sphinx/pycode/pgen2 -i sphinx/util/smartypants.py \
|
-i sphinx/pycode/pgen2 -i sphinx/util/smartypants.py \
|
||||||
-i doc/_build -i ez_setup.py -i tests/path.py .
|
-i doc/_build -i ez_setup.py -i tests/path.py -i tests/coverage.py .
|
||||||
|
|
||||||
clean: clean-pyc clean-patchfiles
|
clean: clean-pyc clean-patchfiles
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
"""
|
"""
|
||||||
sphinx.ext.inheritance_diagram
|
sphinx.ext.inheritance_diagram
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
@ -472,10 +472,11 @@ class HTMLTranslator(BaseTranslator):
|
|||||||
u'title="%s">\u00B6</a>' %
|
u'title="%s">\u00B6</a>' %
|
||||||
_('Permalink to this headline'))
|
_('Permalink to this headline'))
|
||||||
elif close_tag.startswith('</a></h'):
|
elif close_tag.startswith('</a></h'):
|
||||||
self.body.append(u'</a><a class="headerlink" href="#%s" ' % aname +
|
self.body.append(u'</a><a class="headerlink" href="#%s" ' %
|
||||||
|
aname +
|
||||||
u'title="%s">\u00B6' %
|
u'title="%s">\u00B6' %
|
||||||
_('Permalink to this headline'))
|
_('Permalink to this headline'))
|
||||||
|
|
||||||
BaseTranslator.depart_title(self, node)
|
BaseTranslator.depart_title(self, node)
|
||||||
|
|
||||||
def unknown_visit(self, node):
|
def unknown_visit(self, node):
|
||||||
|
@ -111,7 +111,8 @@ def test_inline():
|
|||||||
|
|
||||||
def test_latex_escaping():
|
def test_latex_escaping():
|
||||||
# correct escaping in normal mode
|
# correct escaping in normal mode
|
||||||
yield verify, u'Γ\\\\∞$', None, ur'\(\Gamma\)\textbackslash{}\(\infty\)\$'
|
yield (verify, u'Γ\\\\∞$', None,
|
||||||
|
ur'\(\Gamma\)\textbackslash{}\(\infty\)\$')
|
||||||
# in verbatim code fragments
|
# in verbatim code fragments
|
||||||
yield (verify, u'::\n\n @Γ\\∞$[]', None,
|
yield (verify, u'::\n\n @Γ\\∞$[]', None,
|
||||||
u'\\begin{Verbatim}[commandchars=@\\[\\]]\n'
|
u'\\begin{Verbatim}[commandchars=@\\[\\]]\n'
|
||||||
|
Loading…
Reference in New Issue
Block a user