email-gravatar: fix html syntax issues
an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified
This commit is contained in:
parent
5bda21faf4
commit
8ae1d8b8fd
@ -15,7 +15,7 @@ function filter_open(email, page)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function filter_close()
|
function filter_close()
|
||||||
html("<img src='//www.gravatar.com/avatar/" .. md5 .. "?s=13&d=retro' width=13 height=13 alt='Gravatar' /> " .. buffer)
|
html("<img src='//www.gravatar.com/avatar/" .. md5 .. "?s=13&d=retro' width='13' height='13' alt='Gravatar' /> " .. buffer)
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -36,4 +36,4 @@ sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach())
|
|||||||
md5 = hashlib.md5(email.encode()).hexdigest()
|
md5 = hashlib.md5(email.encode()).hexdigest()
|
||||||
text = sys.stdin.read().strip()
|
text = sys.stdin.read().strip()
|
||||||
|
|
||||||
print("<img src='//www.gravatar.com/avatar/" + md5 + "?s=13&d=retro' width=13 height=13 alt='Gravatar' /> " + text)
|
print("<img src='//www.gravatar.com/avatar/" + md5 + "?s=13&d=retro' width='13' height='13' alt='Gravatar' /> " + text)
|
||||||
|
Loading…
Reference in New Issue
Block a user