about summary refs log tree commit diff
path: root/ui-commit.c
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-01-01 11:44:51 +0000
committerRory& <root@rory.gay>2026-02-06 14:09:56 +0100
commit6f2164e137ec855cf3466aabc8ac414260fe5b28 (patch)
treef7f56e3464fc7568cfe6145180190995bb37569b /ui-commit.c
parentImprove pageheader display on text-based browsers (diff)
downloadcgit-magenta-6f2164e137ec855cf3466aabc8ac414260fe5b28.tar.xz
Use <pre> for commit-msg
This preserves formatting readable for users of text-based browsers
without CSS support.
Diffstat (limited to 'ui-commit.c')
-rw-r--r--ui-commit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-commit.c b/ui-commit.c

index 972e9bc..5536ffc 100644 --- a/ui-commit.c +++ b/ui-commit.c
@@ -123,11 +123,11 @@ void cgit_print_commit(char *hex, const char *prefix) cgit_close_filter(ctx.repo->commit_filter); show_commit_decorations(commit); html("</div>"); - html("<div class='commit-msg'>"); + html("<pre class='commit-msg'>"); cgit_open_filter(ctx.repo->commit_filter); html_txt(info->msg); cgit_close_filter(ctx.repo->commit_filter); - html("</div>"); + html("</pre>"); if (notes.len != 0) { html("<div class='notes-header'>Notes</div>"); html("<div class='notes'>");