mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
#210: Fix nesting of HTML tags for displayed math from pngmath extension.
This commit is contained in:
parent
852cdf6a20
commit
5569f89de2
3
CHANGES
3
CHANGES
@ -1,6 +1,9 @@
|
||||
Release 0.6.3 (in development)
|
||||
==============================
|
||||
|
||||
* #210: Fix nesting of HTML tags for displayed math from pngmath
|
||||
extension.
|
||||
|
||||
* #213: Fix centering of images in LaTeX output.
|
||||
|
||||
* #211: Fix compatibility with docutils 0.5.
|
||||
|
@ -223,12 +223,11 @@ def html_visit_displaymath(self, node):
|
||||
self.body.append('<span class="eqno">(%s)</span>' % node['number'])
|
||||
if fname is None:
|
||||
# something failed -- use text-only as a bad substitute
|
||||
self.body.append('<span class="math">%s</span>' %
|
||||
self.body.append('<span class="math">%s</span></p>\n</div>' %
|
||||
self.encode(node['latex']).strip())
|
||||
else:
|
||||
self.body.append('<img src="%s" alt="%s" />\n</div>' %
|
||||
self.body.append('<img src="%s" alt="%s" /></p>\n</div>' %
|
||||
(fname, self.encode(node['latex']).strip()))
|
||||
self.body.append('</p>')
|
||||
raise nodes.SkipNode
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user