wam: Fix invalid HTML emitted for add-on icon <img> elements

The width/height attributes are always in pixel units. This is not CSS.
This commit is contained in:
Ignacio R. Morelle 2017-07-24 14:54:52 -04:00
parent 86984f0040
commit 73a2e653b7

View file

@ -168,7 +168,7 @@ After install the included MP gameplay modification(s) will be available in the
<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>' % (