diff options
author | Chris Mayo | 2019-02-21 19:57:23 +0000 |
---|---|---|
committer | Jason A. Donenfeld | 2019-02-23 00:09:17 +0100 |
commit | bd0293f57015ede637b630fcaf4fc11e7697d777 (patch) | |
tree | 8777c66023013c75bcd35b8c5c68846057a08504 | |
parent | 5bd7e9bc1b6749bbb5220d6c3a990469a7b839ae (diff) | |
download | cgit-bd0293f57015ede637b630fcaf4fc11e7697d777.tar.gz cgit-bd0293f57015ede637b630fcaf4fc11e7697d777.tar.bz2 cgit-bd0293f57015ede637b630fcaf4fc11e7697d777.zip |
ui-diff,ui-tag: don't use htmlf with non-formatted strings
Signed-off-by: Chris Mayo <aklhfex@gmail.com>
-rw-r--r-- | ui-diff.c | 2 | ||||
-rw-r--r-- | ui-tag.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -82,7 +82,7 @@ static void print_fileinfo(struct fileinfo *info) | |||
82 | } | 82 | } |
83 | 83 | ||
84 | html("<tr>"); | 84 | html("<tr>"); |
85 | htmlf("<td class='mode'>"); | 85 | html("<td class='mode'>"); |
86 | if (is_null_oid(info->new_oid)) { | 86 | if (is_null_oid(info->new_oid)) { |
87 | cgit_print_filemode(info->old_mode); | 87 | cgit_print_filemode(info->old_mode); |
88 | } else { | 88 | } else { |
@@ -71,7 +71,7 @@ void cgit_print_tag(char *revname) | |||
71 | } | 71 | } |
72 | cgit_print_layout_start(); | 72 | cgit_print_layout_start(); |
73 | html("<table class='commit-info'>\n"); | 73 | html("<table class='commit-info'>\n"); |
74 | htmlf("<tr><td>tag name</td><td>"); | 74 | html("<tr><td>tag name</td><td>"); |
75 | html_txt(revname); | 75 | html_txt(revname); |
76 | htmlf(" (%s)</td></tr>\n", oid_to_hex(&oid)); | 76 | htmlf(" (%s)</td></tr>\n", oid_to_hex(&oid)); |
77 | if (info->tagger_date > 0) { | 77 | if (info->tagger_date > 0) { |
@@ -103,7 +103,7 @@ void cgit_print_tag(char *revname) | |||
103 | } else { | 103 | } else { |
104 | cgit_print_layout_start(); | 104 | cgit_print_layout_start(); |
105 | html("<table class='commit-info'>\n"); | 105 | html("<table class='commit-info'>\n"); |
106 | htmlf("<tr><td>tag name</td><td>"); | 106 | html("<tr><td>tag name</td><td>"); |
107 | html_txt(revname); | 107 | html_txt(revname); |
108 | html("</td></tr>\n"); | 108 | html("</td></tr>\n"); |
109 | html("<tr><td>tagged object</td><td class='sha1'>"); | 109 | html("<tr><td>tagged object</td><td class='sha1'>"); |