mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Make check happy.
This commit is contained in:
@@ -43,9 +43,9 @@ def main(argv=sys.argv):
|
||||
'first.')
|
||||
else:
|
||||
whichmod += ' module'
|
||||
print >>sys.stderr, \
|
||||
'Error: The %s cannot be found. Did you install Sphinx '\
|
||||
'and its dependencies correctly?' % whichmod
|
||||
print >>sys.stderr, ('Error: The %s cannot be found. '
|
||||
'Did you install Sphinx and its dependencies '
|
||||
'correctly?' % whichmod)
|
||||
if hint:
|
||||
print >> sys.stderr, hint
|
||||
return 1
|
||||
|
||||
@@ -150,7 +150,8 @@ class QtHelpBuilder(StandaloneHTMLBuilder):
|
||||
staticdir = path.join(outdir, '_static')
|
||||
imagesdir = path.join(outdir, '_images')
|
||||
for root, dirs, files in os.walk(outdir):
|
||||
resourcedir = root.startswith(staticdir) or root.startswith(imagesdir)
|
||||
resourcedir = root.startswith(staticdir) or \
|
||||
root.startswith(imagesdir)
|
||||
for fn in files:
|
||||
if (resourcedir and not fn.endswith('.js')) or \
|
||||
fn.endswith('.html'):
|
||||
|
||||
@@ -237,7 +237,8 @@ def setup(app):
|
||||
app.add_config_value('pngmath_dvipng', 'dvipng', 'html')
|
||||
app.add_config_value('pngmath_latex', 'latex', 'html')
|
||||
app.add_config_value('pngmath_use_preview', False, 'html')
|
||||
app.add_config_value('pngmath_dvipng_args', ['-gamma 1.5', '-D 110'], 'html')
|
||||
app.add_config_value('pngmath_dvipng_args',
|
||||
['-gamma 1.5', '-D 110'], 'html')
|
||||
app.add_config_value('pngmath_latex_args', [], 'html')
|
||||
app.add_config_value('pngmath_latex_preamble', '', 'html')
|
||||
app.connect('build-finished', cleanup_tempdir)
|
||||
|
||||
@@ -27,7 +27,8 @@ if sys.version_info < (2, 5):
|
||||
# begin code copied from utf_8_sig.py in Python 2.6
|
||||
|
||||
def encode(input, errors='strict'):
|
||||
return (codecs.BOM_UTF8 + codecs.utf_8_encode(input, errors)[0], len(input))
|
||||
return (codecs.BOM_UTF8 +
|
||||
codecs.utf_8_encode(input, errors)[0], len(input))
|
||||
|
||||
def decode(input, errors='strict'):
|
||||
prefix = 0
|
||||
|
||||
@@ -633,13 +633,15 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
||||
if self.table.longtable:
|
||||
self.body.append('\\hline\n')
|
||||
self.body.append('\\endfirsthead\n\n')
|
||||
self.body.append('\multicolumn{%s}{c}%%\n' % self.table.colcount)
|
||||
self.body.append('{{\\bfseries \\tablename\\ \\thetable{} -- %s}} \\\\\n' % _('continued from previous page'))
|
||||
self.body.append('\\hline\n')
|
||||
self.body.append('\\multicolumn{%s}{c}%%\n' % self.table.colcount)
|
||||
self.body.append(r'{{\bfseries \tablename\ \thetable{} -- %s}} \\'
|
||||
% _('continued from previous page'))
|
||||
self.body.append('\n\\hline\n')
|
||||
self.body.append('\\endhead\n\n')
|
||||
self.body.append('\\hline \multicolumn{%s}{|r|}{{%s}} \\\\ \\hline\n' % (
|
||||
self.table.colcount, _('Continued on next page')))
|
||||
self.body.append('\\endfoot\n\n')
|
||||
self.body.append(r'\hline \multicolumn{%s}{|r|}{{%s}} \\ \hline'
|
||||
% (self.table.colcount,
|
||||
_('Continued on next page')))
|
||||
self.body.append('\n\\endfoot\n\n')
|
||||
self.body.append('\\hline\n')
|
||||
self.body.append('\\endlastfoot\n\n')
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user