]> git.cameronkatri.com Git - cgit.git/commitdiff
email-gravatar: fix html syntax issues
authorChristian Hesse <mail@eworm.de>
Wed, 15 Jan 2014 12:39:54 +0000 (13:39 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 15 Jan 2014 13:43:02 +0000 (14:43 +0100)
an attribute value specification must be an attribute value literal
unless SHORTTAG YES is specified

filters/email-gravatar.lua
filters/email-gravatar.py

index 3aad2587a0650b9cee36b9b4e9f58d4039e49ab4..52cf4268a4963188e577aa0de8b06ad5dfc447c3 100644 (file)
@@ -15,7 +15,7 @@ function filter_open(email, page)
 end
 
 function filter_close()
-       html("<img src='//www.gravatar.com/avatar/" .. md5 .. "?s=13&amp;d=retro' width=13 height=13 alt='Gravatar' /> " .. buffer)
+       html("<img src='//www.gravatar.com/avatar/" .. md5 .. "?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> " .. buffer)
        return 0
 end
 
index 88bc776a9c3712089ebea4edb0d331ede819aa38..d70440ea543cc30fd6de6512d03431a6f2dc97e3 100755 (executable)
@@ -36,4 +36,4 @@ sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach())
 md5 = hashlib.md5(email.encode()).hexdigest()
 text = sys.stdin.read().strip()
 
-print("<img src='//www.gravatar.com/avatar/" + md5 + "?s=13&amp;d=retro' width=13 height=13 alt='Gravatar' /> " + text)
+print("<img src='//www.gravatar.com/avatar/" + md5 + "?s=13&amp;d=retro' width='13' height='13' alt='Gravatar' /> " + text)