diff options
author | Eric Wong | 2019-01-01 11:44:51 +0000 |
---|---|---|
committer | June McEnroe | 2022-02-13 11:53:56 -0500 |
commit | 2843093cb4f1ef9bc62f2ed2451a503c386c388a (patch) | |
tree | 5fa6487f20dd44ad0b4e9aa5df9df784b50a657a /ui-commit.c | |
parent | Improve pageheader display on text-based browsers (diff) | |
download | cgit-2843093cb4f1ef9bc62f2ed2451a503c386c388a.tar.gz cgit-2843093cb4f1ef9bc62f2ed2451a503c386c388a.zip |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-commit.c b/ui-commit.c index 7d87c0a..ee5d2c7 100644 --- a/ui-commit.c +++ b/ui-commit.c | |||
@@ -121,11 +121,11 @@ void cgit_print_commit(char *hex, const char *prefix) | |||
121 | cgit_close_filter(ctx.repo->commit_filter); | 121 | cgit_close_filter(ctx.repo->commit_filter); |
122 | show_commit_decorations(commit); | 122 | show_commit_decorations(commit); |
123 | html("</div>"); | 123 | html("</div>"); |
124 | html("<div class='commit-msg'>"); | 124 | html("<pre class='commit-msg'>"); |
125 | cgit_open_filter(ctx.repo->commit_filter); | 125 | cgit_open_filter(ctx.repo->commit_filter); |
126 | html_txt(info->msg); | 126 | html_txt(info->msg); |
127 | cgit_close_filter(ctx.repo->commit_filter); | 127 | cgit_close_filter(ctx.repo->commit_filter); |
128 | html("</div>"); | 128 | html("</pre>"); |
129 | if (notes.len != 0) { | 129 | if (notes.len != 0) { |
130 | html("<div class='notes-header'>Notes</div>"); | 130 | html("<div class='notes-header'>Notes</div>"); |
131 | html("<div class='notes'>"); | 131 | html("<div class='notes'>"); |