]> git.armaanb.net Git - stagit.git/commitdiff
stagit-index: remove empty h1 and add bold markup to table headers
authorHiltjo Posthuma <hiltjo@codemadness.org>
Sun, 16 Apr 2017 18:36:48 +0000 (20:36 +0200)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Sun, 16 Apr 2017 18:36:48 +0000 (20:36 +0200)
stagit-index.c

index 0a72b334d14a0f0e2f9ad664a584129271a8a59a..1552f40bd9159ed192c20a8d7bc7224f6194f389 100644 (file)
@@ -81,12 +81,14 @@ writeheader(FILE *fp)
        fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath);
        fputs("</head>\n<body>\n", fp);
        fprintf(fp, "<table>\n<tr><td><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></td>\n"
-               "<td><h1>%s</h1><span class=\"desc\">%s</span></td></tr><tr><td></td><td>\n",
-               relpath, name, description);
-       fputs("</td></tr>\n</table>\n<hr/>\n<div id=\"content\">\n"
-             "<table id=\"index\"><thead>\n"
-             "<tr><td>Name</td><td>Description</td><td>Owner</td><td>Last commit</td></tr>"
-             "</thead><tbody>\n", fp);
+               "<td><span class=\"desc\">", relpath);
+       xmlencode(fp, description, strlen(description));
+       fputs("</span></td></tr><tr><td></td><td>\n"
+               "</td></tr>\n</table>\n<hr/>\n<div id=\"content\">\n"
+               "<table id=\"index\"><thead>\n"
+               "<tr><td><b>Name</b></td><td><b>Description</b></td><td><b>Owner</b></td>"
+               "<td><b>Last commit</b></td></tr>"
+               "</thead><tbody>\n", fp);
 }
 
 void