diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Tidy the structure of the generated markup
Diffstat (limited to '')
-rw-r--r--source/ui-repolist.c10
1 file changed, 5 insertions, 5 deletions
diff --git a/source/ui-repolist.c b/source/ui-repolist.c
index a8b401f..c81d822 100644
--- a/source/ui-repolist.c
+++ b/source/ui-repolist.c
@@ -217,7 +217,7 @@ static void print_section_row(const char *section, int columns)
htmlf("<tr class='nohover-highlight'><td colspan='%d' class='reposection'>",
columns);
html_txt(section);
- html("</td></tr>");
+ html("</td></tr>\n");
}
static void print_repo_row(const char *currenturl, int sublevel)
@@ -269,7 +269,7 @@ static void print_pager(int total, int pagelen, char *search, char *sort)
int i, ofs;
char *class = NULL;
- html("<ul class='pager'>");
+ html("<ul class='pager'>\n");
for (i = 0, ofs = 0; ofs < total; i++, ofs = i * pagelen) {
class = (ctx.qry.ofs == ofs) ? "current" : NULL;
html("<li>");
@@ -277,7 +277,7 @@ static void print_pager(int total, int pagelen, char *search, char *sort)
class, search, sort, ofs, 0);
html("</li>");
}
- html("</ul>");
+ html("</ul>\n");
}
static int cmp_str(const char *s1, const char *s2)
@@ -424,7 +424,7 @@ void cgit_print_repolist(void)
sort_repolist("section");
currenturl = cgit_currenturl();
- html("<table class='list repolist'>");
+ html("<table class='list repolist'>\n");
for (i = 0; i < cgit_repolist.count; i++) {
char *section;
@@ -452,7 +452,7 @@ void cgit_print_repolist(void)
}
print_repo_row(currenturl, !column_sorted && section);
}
- html("</table>");
+ html("</table>\n");
if (hits > ctx.cfg.max_repo_count)
print_pager(hits, ctx.cfg.max_repo_count, ctx.qry.search, ctx.qry.sort);
free(currenturl);