diff options
Diffstat (limited to 'ui-commit.c')
-rw-r--r-- | ui-commit.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ui-commit.c b/ui-commit.c index 948118c..b49259e 100644 --- a/ui-commit.c +++ b/ui-commit.c | |||
@@ -39,10 +39,11 @@ void cgit_print_commit(char *hex, const char *prefix) | |||
39 | } | 39 | } |
40 | info = cgit_parse_commit(commit); | 40 | info = cgit_parse_commit(commit); |
41 | 41 | ||
42 | format_display_notes(&oid, ¬es, PAGE_ENCODING, 0); | 42 | format_display_notes(&oid, ¬es, PAGE_ENCODING, 1); |
43 | 43 | ||
44 | load_ref_decorations(NULL, DECORATE_FULL_REFS); | 44 | load_ref_decorations(NULL, DECORATE_FULL_REFS); |
45 | 45 | ||
46 | ctx.page.title = fmtalloc("%s - %s", info->subject, ctx.page.title); | ||
46 | cgit_print_layout_start(); | 47 | cgit_print_layout_start(); |
47 | cgit_print_diff_ctrls(); | 48 | cgit_print_diff_ctrls(); |
48 | html("<table summary='commit info' class='commit-info'>\n"); | 49 | html("<table summary='commit info' class='commit-info'>\n"); |
@@ -120,11 +121,11 @@ void cgit_print_commit(char *hex, const char *prefix) | |||
120 | cgit_close_filter(ctx.repo->commit_filter); | 121 | cgit_close_filter(ctx.repo->commit_filter); |
121 | show_commit_decorations(commit); | 122 | show_commit_decorations(commit); |
122 | html("</div>"); | 123 | html("</div>"); |
123 | html("<div class='commit-msg'>"); | 124 | html("<pre class='commit-msg'>"); |
124 | cgit_open_filter(ctx.repo->commit_filter); | 125 | cgit_open_filter(ctx.repo->commit_filter); |
125 | html_txt(info->msg); | 126 | html_txt(info->msg); |
126 | cgit_close_filter(ctx.repo->commit_filter); | 127 | cgit_close_filter(ctx.repo->commit_filter); |
127 | html("</div>"); | 128 | html("</pre>"); |
128 | if (notes.len != 0) { | 129 | if (notes.len != 0) { |
129 | html("<div class='notes-header'>Notes</div>"); | 130 | html("<div class='notes-header'>Notes</div>"); |
130 | html("<div class='notes'>"); | 131 | html("<div class='notes'>"); |