mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fixed encoding issue in pngmath hashing
This commit is contained in:
parent
d02008f99d
commit
331f625f91
@ -75,7 +75,7 @@ def render_math(self, math):
|
|||||||
"""
|
"""
|
||||||
use_preview = self.builder.config.pngmath_use_preview
|
use_preview = self.builder.config.pngmath_use_preview
|
||||||
|
|
||||||
shasum = "%s.png" % sha(math).hexdigest()
|
shasum = "%s.png" % sha(math.encode('utf-8')).hexdigest()
|
||||||
relfn = posixpath.join(self.builder.imgpath, 'math', shasum)
|
relfn = posixpath.join(self.builder.imgpath, 'math', shasum)
|
||||||
outfn = path.join(self.builder.outdir, '_images', 'math', shasum)
|
outfn = path.join(self.builder.outdir, '_images', 'math', shasum)
|
||||||
if path.isfile(outfn):
|
if path.isfile(outfn):
|
||||||
|
Loading…
Reference in New Issue
Block a user