idiotbox-c

youtube web application in C
git clone git://git.codemadness.org/idiotbox-c
Log | Files | Refs | README | LICENSE

commit d016bbde1588d11a86af7a97ea61d38eb7778aba
parent a15cae3be505971d8c4d4945bcae76c4f5894095
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Thu, 28 Jun 2018 20:33:35 +0200

improve HTML

Diffstat:
main.c | 15+++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/main.c b/main.c @@ -806,19 +806,18 @@ render(void) OUT(" likes "); fancycount(strtoll(videos[i].dislikecount, NULL, 10)); OUT( - " dislikes" - " </span><br/>\n" + " dislikes</span><br/>\n" " </td>\n" " <td align=\"right\" class=\"a-r\">\n" " <span class=\"duration\">"); printduration(parseiso8601duration(videos[i].duration)); OUT( - " </span>\n" + "</span>\n" " </td>\n" "</tr>\n" "<tr class=\"hr\">\n" " <td colspan=\"3\"><hr/></td>\n" - "</tr>"); + "</tr>\n"); } OUT("</tbody>\n"); @@ -826,7 +825,7 @@ render(void) OUT( "<tfoot>\n" " <tr>\n" - " <td align=\"left\" class=\"nowrap\" nowrap>\n"); + " <td align=\"left\" class=\"nowrap\" nowrap>\n"); if (prevpagetoken[0]) { OUT("<a href=\"?q="); xmlencode(search); @@ -839,8 +838,8 @@ render(void) OUT("\" rel=\"prev nofollow\" accesskey=\"p\">&larr; prev</a>\n"); } OUT( - "</td>\n<td></td>\n" - "<td align=\"right\" nowrap class=\"a-r nowrap\">\n"); + "</td>\n\t<td></td>\n" + "\t<td align=\"right\" nowrap class=\"a-r nowrap\">\n"); if (nextpagetoken[0]) { OUT("<a href=\"?q="); xmlencode(search); @@ -853,7 +852,7 @@ render(void) OUT("\" rel=\"next nofollow\" accesskey=\"n\">next &rarr;</a>\n"); } OUT( - "</td>\n" + "\t</td>\n" "</tr>\n" "</tfoot>\n"); }