From 2915483ef6c9c29ac1493e6945688bb62f7825b4 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Sun, 11 Nov 2007 13:04:28 +0100 Subject: Fix html error detected by test-suite Signed-off-by: Lars Hjemli --- ui-shared.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'ui-shared.c') diff --git a/ui-shared.c b/ui-shared.c index 7c69f60..9ec646b 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -358,7 +358,7 @@ void cgit_print_docstart(char *title, struct cacheitem *item) ttl_seconds(item->ttl))); html("\n"); html(cgit_doctype); - html("\n"); + html("\n"); html("\n"); html(""); html_txt(title); @@ -373,7 +373,7 @@ void cgit_print_docstart(char *title, struct cacheitem *item) void cgit_print_docend() { - html("</td>\n</tr>\n<table>\n</body>\n</html>\n"); + html("</td>\n</tr>\n</table>\n</body>\n</html>\n"); } int print_branch_option(const char *refname, const unsigned char *sha1, @@ -456,21 +456,21 @@ void cgit_print_pageheader(char *title, int show_search) int header = 0; html("<div id='sidebar'>\n"); - html("<a href='"); + html("<div id='logo'><a href='"); html_attr(cgit_rooturl()); - htmlf("'><div id='logo'><img src='%s' alt='cgit'/></div></a>\n", + htmlf("'><img src='%s' alt='cgit'/></a></div>\n", cgit_logo); html("<div class='infobox'>"); if (cgit_query_repo) { - html("<h1>"); + html("<h1 class='first'>"); html_txt(strrpart(cgit_repo->name, 20)); html("</h1>\n"); html_txt(cgit_repo->desc); if (cgit_repo->owner) { - html("<p>\n<h1>owner</h1>\n"); + html("<h1>owner</h1>\n"); html_txt(cgit_repo->owner); } - html("<p>\n<h1>navigate</h1>\n"); + html("<h1>navigate</h1>\n"); reporevlink(NULL, "summary", NULL, "menu", cgit_query_head, NULL, NULL); cgit_log_link("log", NULL, "menu", cgit_query_head, NULL, NULL, @@ -484,19 +484,19 @@ void cgit_print_pageheader(char *title, int show_search) for_each_ref(print_archive_ref, &header); - html("<p>\n<h1>branch</h1>\n"); + html("<h1>branch</h1>\n"); html("<form method='get' action=''>\n"); add_hidden_formfields(0, 1, cgit_query_page); - html("<table class='grid'><tr><td id='branch-dropdown-cell'>"); + html("<table summary='branch selector' class='grid'><tr><td id='branch-dropdown-cell'>"); html("<select name='h' onchange='this.form.submit();'>\n"); for_each_branch_ref(print_branch_option, cgit_query_head); html("</select>\n"); html("</td><td>"); - html("<noscript><input type='submit' id='switch-btn' value='..'></noscript>\n"); + html("<noscript><input type='submit' id='switch-btn' value='..'/></noscript>\n"); html("</td></tr></table>"); html("</form>\n"); - html("<p>\n<h1>search</h1>\n"); + html("<h1>search</h1>\n"); html("<form method='get' action='"); if (cgit_virtual_root) html_attr(cgit_fileurl(cgit_query_repo, "log", @@ -519,7 +519,7 @@ void cgit_print_pageheader(char *title, int show_search) html("</div>\n"); - html("</div>\n<table class='grid'><tr><td id='content'>\n"); + html("</div>\n<table summary='page content' class='grid'><tr><td id='content'>\n"); } -- cgit 1.4.1 gsubject'><a href='/src/commit/etc/psf/sans6x8.psf?id=717a0fc69c87b51b851c4db53a8bfe5c0cae39f9&follow=1'>Remove PSF fonts</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> They were fun to make but I never actually used them. </td></tr> <tr class='logheader'><td><span title='2021-09-22 18:46:14 -0400'>2021-09-22</span></td><td class='logsubject'><a href='/src/commit/bin/psfed.c?id=dc173ca9c660f775675d6c712f82dcedccdf9db0&follow=1'>Remove Linux-specific utilities</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> I haven't used these in ages. </td></tr> <tr class='logheader'><td><span title='2021-09-22 21:13:12 +0000'>2021-09-22</span></td><td class='logsubject'><a href='/src/commit/www/temp.causal.agency/up.c?id=dbcf4c53325774c83d29cdd96a3e822e71029221&follow=1'>Call sandbox in CGI mode</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> Otherwise upload won't actually work. </td></tr> <tr class='logheader'><td><span title='2021-09-22 19:43:54 +0000'>2021-09-22</span></td><td class='logsubject'><a href='/src/commit/www/temp.causal.agency/up.c?id=6ded0a072c0e63c8062d5429deee7e988f24afe9&follow=1'>Support HTTP PUT in up</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> For use by Palaver[1]. Unfortunately, at least in the current App Store version of Palaver, this doesn't work correctly with basic auth. [1]: https://palaverapp.com/guides/commands/set.html#ui-image_service </td></tr> <tr class='logheader'><td><span title='2021-09-22 15:40:24 +0000'>2021-09-22</span></td><td class='logsubject'><a href='/src/commit/www/git.causal.agency/cgit/favicon.ico?id=b66b864a89e0a956e9d5d8909ccb3084df3c273e&follow=1'>Remove default favicon</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> I hate these things and also this one sucks. </td></tr> <tr class='logheader'><td><span title='2021-09-21 22:04:26 -0400'>2021-09-21</span></td><td class='logsubject'><a href='/src/commit/bin/pngo.c?id=f6e92ca67f72999ae9b520c9008a4855a339620b&follow=1'>Use Z_FILTERED strategy</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2021-09-21 21:33:33 -0400'>2021-09-21</span></td><td class='logsubject'><a href='/src/commit/bin/pngo.c?id=d16660acf755488a7ec936ab959b82dcb219ac67&follow=1'>Recalculate various lengths only as needed</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> This actually speeds things up quite a bit, saving roughly a second on a big PNG screenshot. Almost all the remaining time is spent in deflate. </td></tr> <tr class='logheader'><td><span title='2021-09-21 15:02:46 -0400'>2021-09-21</span></td><td class='logsubject'><a href='/src/commit/bin/pngo.c?id=9fc326b10ab2e20a8bdb100bbfef24e8b8f3934f&follow=1'>Rewrite pngo, add explicit options</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> Interesting to see how my code habits have changed. </td></tr> <tr class='logheader'><td><span title='2021-09-16 09:34:37 -0400'>2021-09-16</span></td><td class='logsubject'><a href='/src/commit/bin/c11.l?id=be809c51a57225e17897ca9e5243c259c65895f0&follow=1'>Fix /* **/ comment matching</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2021-09-15 19:02:12 -0400'>2021-09-15</span></td><td class='logsubject'><a href='/src/commit/bin/typer.c?id=e4e49b1b03e6eb666d6efaf2850cc15f2f71b713&follow=1'>Remove typer, add downgrade to README</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2021-09-15 12:13:31 -0400'>2021-09-15</span></td><td class='logsubject'><a href='/src/commit/bin/man1/downgrade.1?id=9932abb09e3204d6cbd44c92f3678b6184625693&follow=1'>Set bot mode on downgrade</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2021-09-15 14:48:03 +0000'>2021-09-15</span></td><td class='logsubject'><a href='/src/commit/bin/downgrade.c?id=68f41009e9283757b672bbafcaa7bb0bdd121e32&follow=1'>Enter capsicum in downgrade</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2021-09-15 10:46:21 -0400'>2021-09-15</span></td><td class='logsubject'><a href='/src/commit/bin/downgrade.c?id=48e911f761cb4593706bfeb721b478bf4e7ea7c6&follow=1'>Factor out common parts of downgrade messages</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> Also bump the message cap to 1024 because that is ostensibly useful for replying to older messages. </td></tr> <tr class='logheader'><td><span title='2021-09-14 23:37:51 -0400'>2021-09-14</span></td><td class='logsubject'><a href='/src/commit/bin/man1/downgrade.1?id=55dfaa3c16c9bfda165d823d74034fda0dc6b4f6&follow=1'>Add downgrade IRC bot</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2021-09-14 23:20:57 -0400'>2021-09-14</span></td><td class='logsubject'><a href='/src/commit/bin/bibsort.pl?id=b124bde2b6ec698b5468167cfaea63b598f77bd0&follow=1'>Sort by title if authors match</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> There are probably better things to sort by but title definitely always exists. </td></tr> <tr class='logheader'><td><span title='2021-09-13 09:14:02 -0400'>2021-09-13</span></td><td class='logsubject'><a href='/src/commit/bin/htagml.c?id=abda08060ecf83cf2ae3b47e7ba8af3701a5fb38&follow=1'>Swap-remove tags as they're found</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> This makes it even faster. From ~1s on a sqlite3.c amalgamation to ~0.85s. </td></tr> <tr class='logheader'><td><span title='2021-09-12 21:02:19 -0400'>2021-09-12</span></td><td class='logsubject'><a href='/src/commit/bin/htagml.c?id=e7b4d18510cf26a0a72fac72604f930d62b4fa7d&follow=1'>Replace htagml regex with strncmp</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> Since ctags only ever produces regular expressions of the form /^re$/ or /^re/ with no other special characters, instead unescape the pattern and simply use strncmp. Running on a sqlite3.c amalgamation, the regex version takes ~37s while the strncmp version takes ~1s, producing identical output. Big win! </td></tr> <tr class='logheader'><td><span title='2021-09-11 15:11:48 -0400'>2021-09-11</span></td><td class='logsubject'><a href='/src/commit/bin/git-comment.pl?id=9d3e8a88a0d06310ff0a9309a5439ab97b8f922f&follow=1'>Also defer printing comment for lone close-parens</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2021-09-10 20:06:21 -0400'>2021-09-10</span></td><td class='logsubject'><a href='/src/commit/www/text.causal.agency/Makefile?id=ae5823a4cda93b6def9ae017ba3d93daa2eceeb9&follow=1'>Publish "git-comment"</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2021-09-10 17:10:15 -0400'>2021-09-10</span></td><td class='logsubject'><a href='/src/commit/bin/man1/git-comment.1?id=4c6cb6a661e970cf6951f627390f65b59ec8a7de&follow=1'>Add git comment --pretty option</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2021-09-08 23:32:51 -0400'>2021-09-08</span></td><td class='logsubject'><a href='/src/commit/bin/git-comment.pl?id=774decfc311710c12a27a3c5cd827c96fea4d332&follow=1'>Defer printing comment if line is blank or closing brace</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> This fixes badly indented comments. </td></tr> <tr class='logheader'><td><span title='2021-09-08 22:17:13 -0400'>2021-09-08</span></td><td class='logsubject'><a href='/src/commit/bin/man1/git-comment.1?id=1a5ecb6c6d42d8e0a9284897c90d6047f8ad8842&follow=1'>Up default min-repeat to 30 lines</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2021-09-08 22:11:15 -0400'>2021-09-08</span></td><td class='logsubject'><a href='/src/commit/bin/git-comment.pl?id=5908b0ae469e5d20d6b05eb3aabf2ea7b3d65311&follow=1'>Handle dirty lines in git-comment</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2021-09-08 21:59:30 -0400'>2021-09-08</span></td><td class='logsubject'><a href='/src/commit/bin/man1/git-comment.1?id=a237a866bba3b7c4618ccef1347c0c01009e66f3&follow=1'>Document and install git-comment</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2021-09-08 21:05:33 -0400'>2021-09-08</span></td><td class='logsubject'><a href='/src/commit/bin/git-comment.pl?id=ce5d7b18c0143dda7b3c9a78260b6e5ce7eec11a&follow=1'>Add repeat and all options to git-comment</a></td><td>June McEnroe</td></tr> <tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'> </td></tr> <tr class='logheader'><td><span title='2021-09-08 19:05:36 -0400'>2021-09-08</span></td><td class='logsubject'><a href='/src/commit/bin/git-comment.pl?id=c06e03fe68c3f55ff251607a534c75ac5d419af8&follow=1'>Add group threshold to git-comment</a></td><td>June McEnroe