about summary refs log tree commit
path: root/ui-commit.c
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-01-01 09:25:01 +0000
committerEric Wong <e@80x24.org>2019-04-22 02:34:37 +0000
commit20a33d1b5e97093d923ea73b953a732f1ac9bae0 (patch)
tree8067c80d29d077c33e28341bbc1def0e97d61f36 /ui-commit.c
parentd501a989f82462879e953a537d57d35bc3fff570 (diff)
downloadcgit-20a33d1b5e97093d923ea73b953a732f1ac9bae0.tar.gz
ui-{commit,tag}: 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 9a47b54..1c04c87 100644
--- a/ui-commit.c
+++ b/ui-commit.c
@@ -120,11 +120,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'>");