diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Tidy the structure of the generated markup
Diffstat (limited to '')
| -rw-r--r-- | source/ui-commit.c | 14 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 file changed, 7 insertions, 7 deletions
diff --git a/source/ui-commit.c b/source/ui-commit.c index 5a71954..befff25 100644 --- a/source/ui-commit.c +++ b/source/ui-commit.c @@ -55,7 +55,7 @@ static int print_parent_rows(struct commit *commit, const char *rev, if (!parent) { html("<tr><td colspan='3'>"); cgit_print_error("Error reading parent commit"); - html("</td></tr>"); + html("</td></tr>\n"); continue; } html("<tr><th>parent</th>" @@ -68,7 +68,7 @@ static int print_parent_rows(struct commit *commit, const char *rev, html(" ("); cgit_diff_link("diff", NULL, NULL, ctx.qry.head, rev, oid_to_hex(&p->item->object.oid), prefix); - html(")</td></tr>"); + html(")</td></tr>\n"); parents++; } return parents; @@ -153,16 +153,16 @@ void cgit_print_commit(char *hex, const char *prefix) html("<div class='commit-subject'>"); print_filtered_text(info->subject); cgit_print_commit_decorations(commit); - html("</div>"); + html("</div>\n"); html("<div class='commit-msg'>"); print_filtered_text(info->msg); - html("</div>"); + html("</div>\n"); if (notes.len != 0) { - html("<div class='notes-header'>Notes</div>"); + html("<div class='notes-header'>Notes</div>\n"); html("<div class='notes'>"); print_filtered_text(notes.buf); - html("</div>"); - html("<div class='notes-footer'></div>"); + html("</div>\n"); + html("<div class='notes-footer'></div>\n"); } if (parents < OCTOPUS_PARENTS) { |
