Skip to content

Commit

Permalink
wam: Fix invalid HTML emitted for add-on icon <img> elements
Browse files Browse the repository at this point in the history
The width/height attributes are always in pixel units. This is not CSS.
  • Loading branch information
irydacea committed Jul 24, 2017
1 parent 86984f0 commit 73a2e65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/tools/addon_manager/html.py
Expand Up @@ -168,7 +168,7 @@ def w(x):
<td>Resources<div class="type"><b>miscellaneous content/media</b><br/>
Unit packs, terrain packs, music packs, etc. Usually a (perhaps optional) dependency of another add-on.</div></td>""")
else: w(('<td>%s</td>') % type)
w(('<td><img alt="%s" src="%s" width="72px" height="72px"/>'
w(('<td><img alt="%s" src="%s" width="72" height="72"/>'
) % (icon, imgurl))
described = htmlescape(v("description", "(no description)"))
w('<div class="desc"><b>%s</b><pre>%s</pre></div></td>' % (
Expand Down

0 comments on commit 73a2e65

Please sign in to comment.