Skip to content

Commit

Permalink
Gallery: use empty string for "alt" text
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeier committed Sep 2, 2022
1 parent e3df8bd commit b7187fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nbsphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -2334,7 +2334,7 @@ def depart_gallery_html(self, node):
tooltip = ' tooltip="{}"'.format(html.escape(tooltip))
self.body.append("""\
<div class="sphx-glr-thumbcontainer"{tooltip}>
<img alt="{title}" src="{filename}" />
<img alt="" src="{filename}" />
<p><a class="reference internal" href="{uri}"><span class="std std-ref">{title}</span></a></p>
<div class="sphx-glr-thumbnail-title">{title}</div>
</div>
Expand Down

0 comments on commit b7187fe

Please sign in to comment.