stagit

stagit-index: remove empty h1 and add bold markup to table headers

Hiltjo Posthuma contact@arjunchoudhary.com

commit: 54a7401 parent: 2aec8a9
1 files changed, 8 insertions(+), 6 deletions(-)
Mstagit-index.c+8-6
M · stagit-index.c +8, -6
 1@@ -81,12 +81,14 @@ writeheader(FILE *fp)
 2 	fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath);
 3 	fputs("</head>\n<body>\n", fp);
 4 	fprintf(fp, "<table>\n<tr><td><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></td>\n"
 5-	        "<td><h1>%s</h1><span class=\"desc\">%s</span></td></tr><tr><td></td><td>\n",
 6-		relpath, name, description);
 7-	fputs("</td></tr>\n</table>\n<hr/>\n<div id=\"content\">\n"
 8-	      "<table id=\"index\"><thead>\n"
 9-	      "<tr><td>Name</td><td>Description</td><td>Owner</td><td>Last commit</td></tr>"
10-	      "</thead><tbody>\n", fp);
11+	        "<td><span class=\"desc\">", relpath);
12+	xmlencode(fp, description, strlen(description));
13+	fputs("</span></td></tr><tr><td></td><td>\n"
14+		"</td></tr>\n</table>\n<hr/>\n<div id=\"content\">\n"
15+		"<table id=\"index\"><thead>\n"
16+		"<tr><td><b>Name</b></td><td><b>Description</b></td><td><b>Owner</b></td>"
17+		"<td><b>Last commit</b></td></tr>"
18+		"</thead><tbody>\n", fp);
19 }
20 
21 void