]> Sergey Matveev's repositories - public-inbox.git/blobdiff - examples/cgit-commit-filter.lua
examples: cgit-commit-filter: drop <tt> HTML tag, use title=
[public-inbox.git] / examples / cgit-commit-filter.lua
index 9614c94441e0149374f388e7bebc0df3662078d4..9857b3c9572a33a0a3e7723f96a0de5e753a6bba 100644 (file)
@@ -31,12 +31,13 @@ function filter_close()
                if u == nil then
                        html(buffer)
                else
-                       html('<a href="' .. u .. '?x=t&amp;q=')
+                       html("<a\ntitle='mail thread'\n")
+                       html('href="' .. u .. '?x=t&amp;q=')
                        s = string.gsub(buffer, '"', '""')
                        html_url_arg('"' .. s .. '"')
-                       html('"><tt>')
+                       html('">')
                        html_txt(buffer)
-                       html('</tt></a>')
+                       html('</a>')
                end
        else
                -- pass the body-through as-is