author | Lars Hjemli <hjemli@gmail.com> | 2007-11-11 12:44:39 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-11-11 12:44:39 (UTC) |
commit | 1b7c5b2e0b918e9452694aace7c19194683989a8 (patch) (side-by-side diff) | |
tree | efdb7947afbbe1862c6c54ecdce303a6c3772117 | |
parent | a7cf406c802394460cb14c79f3f43582d1428a45 (diff) | |
download | cgit-1b7c5b2e0b918e9452694aace7c19194683989a8.zip cgit-1b7c5b2e0b918e9452694aace7c19194683989a8.tar.gz cgit-1b7c5b2e0b918e9452694aace7c19194683989a8.tar.bz2 |
Generate valid html for "downloads" menu header
Noticed-by: http://validator.w3.org
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | ui-shared.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-shared.c b/ui-shared.c index 9ec646b..5192800 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -406,17 +406,17 @@ int print_archive_ref(const char *refname, const unsigned char *sha1, return 0; hashcpy(fileid, tag->tagged->sha1); } else if (obj->type != OBJ_BLOB) { return 0; } else { hashcpy(fileid, sha1); } if (!*header) { - html("<p><h1>download</h1>"); + html("<h1>download</h1>\n"); *header = 1; } url = cgit_pageurl(cgit_query_repo, "blob", fmt("id=%s&path=%s", sha1_to_hex(fileid), buf)); html_link_open(url, NULL, "menu"); html_txt(strlpart(buf, 20)); html_link_close(); |