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-refs.c10
1 file changed, 5 insertions, 5 deletions
diff --git a/source/ui-refs.c b/source/ui-refs.c
index 8490417..624d1a0 100644
--- a/source/ui-refs.c
+++ b/source/ui-refs.c
@@ -186,7 +186,7 @@ static void print_refs_link(const char *path)
{
html("<tr class='nohover'><td colspan='5'>");
cgit_refs_link("[...]", NULL, NULL, ctx.qry.head, NULL, path);
- html("</td></tr>");
+ html("</td></tr>\n");
}
static void print_ref_pager(int ofs, int pagesize, int count, const char *path)
@@ -214,7 +214,7 @@ static void print_ref_pager(int ofs, int pagesize, int count, const char *path)
html("'>[next]</a>");
free(url);
}
- html("</td></tr>");
+ html("</td></tr>\n");
}
static struct ref_page page_bounds(int pagesize, int count)
@@ -334,7 +334,7 @@ void cgit_print_tags(int maxcount)
void cgit_print_refs(void)
{
cgit_print_layout_start();
- html("<table class='list'>");
+ html("<table class='list'>\n");
if (ctx.qry.path && starts_with(ctx.qry.path, "heads"))
print_branches_page(ctx.cfg.max_ref_count);
@@ -342,9 +342,9 @@ void cgit_print_refs(void)
print_tags_page(ctx.cfg.max_ref_count);
else {
cgit_print_branches(ctx.cfg.max_ref_count);
- html("<tr class='nohover'><td colspan='5'>&nbsp;</td></tr>");
+ html("<tr class='nohover'><td colspan='5'>&nbsp;</td></tr>\n");
cgit_print_tags(ctx.cfg.max_ref_count);
}
- html("</table>");
+ html("</table>\n");
cgit_print_layout_end();
}