]> git.cameronkatri.com Git - cgit.git/commitdiff
ui-diff,ui-tag: don't use htmlf with non-formatted strings
authorChris Mayo <aklhfex@gmail.com>
Thu, 21 Feb 2019 19:57:23 +0000 (19:57 +0000)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 22 Feb 2019 23:09:17 +0000 (00:09 +0100)
Signed-off-by: Chris Mayo <aklhfex@gmail.com>
ui-diff.c
ui-tag.c

index 70dcc915ddd47117a5f75a1745117018ad24f688..c60aefd1d629826e081329713324b7b35b6dff8e 100644 (file)
--- a/ui-diff.c
+++ b/ui-diff.c
@@ -82,7 +82,7 @@ static void print_fileinfo(struct fileinfo *info)
        }
 
        html("<tr>");
-       htmlf("<td class='mode'>");
+       html("<td class='mode'>");
        if (is_null_oid(info->new_oid)) {
                cgit_print_filemode(info->old_mode);
        } else {
index f530224661aed0b8e15dd289b504d8d241e2f167..846d5b141f4380b4d1ff0b612566136cf0633645 100644 (file)
--- a/ui-tag.c
+++ b/ui-tag.c
@@ -71,7 +71,7 @@ void cgit_print_tag(char *revname)
                }
                cgit_print_layout_start();
                html("<table class='commit-info'>\n");
-               htmlf("<tr><td>tag name</td><td>");
+               html("<tr><td>tag name</td><td>");
                html_txt(revname);
                htmlf(" (%s)</td></tr>\n", oid_to_hex(&oid));
                if (info->tagger_date > 0) {
@@ -103,7 +103,7 @@ void cgit_print_tag(char *revname)
        } else {
                cgit_print_layout_start();
                html("<table class='commit-info'>\n");
-               htmlf("<tr><td>tag name</td><td>");
+               html("<tr><td>tag name</td><td>");
                html_txt(revname);
                html("</td></tr>\n");
                html("<tr><td>tagged object</td><td class='sha1'>");