From mboxrd@z Thu Jan 1 00:00:00 1970 From: e at 80x24.org (Eric Wong) Date: Tue, 1 Jan 2019 11:44:51 +0000 Subject: [PATCH 2/4] ui-{commit,tag}: use
for commit-msg In-Reply-To: <20190101114453.4876-1-e@80x24.org> References: <20190101114453.4876-1-e@80x24.org> Message-ID: <20190101114453.4876-3-e@80x24.org> This preserves formatting readable for users of text-based browsers without CSS support. --- cgit.css | 5 ----- tests/t0105-commit.sh | 2 +- ui-commit.c | 4 ++-- ui-tag.c | 4 ++-- 4 files changed, 5 insertions(+), 10 deletions(-) diff --git a/cgit.css b/cgit.css index 8c313e2..9f70d14 100644 --- a/cgit.css +++ b/cgit.css @@ -436,11 +436,6 @@ div#cgit div.commit-subject { padding: 0em; } -div#cgit div.commit-msg { - white-space: pre; - font-family: monospace; -} - div#cgit div.notes-header { font-weight: bold; padding-top: 1.5em; diff --git a/tests/t0105-commit.sh b/tests/t0105-commit.sh index 9cdf55c..9e34abd 100755 --- a/tests/t0105-commit.sh +++ b/tests/t0105-commit.sh @@ -11,7 +11,7 @@ test_expect_success 'find commit subject' ' grep "commit 5<" tmp ' -test_expect_success 'find commit msg' 'grep "" tmp' +test_expect_success 'find commit msg' 'grep "" tmp' test_expect_success 'find diffstat' 'grep "" tmp' test_expect_success 'find diff summary' ' 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(""); - html("
"); + html(""); + html(""); if (notes.len != 0) { html(""); cgit_open_filter(ctx.repo->commit_filter); html_txt(info->msg); cgit_close_filter(ctx.repo->commit_filter); - html("Notes"); html(""); diff --git a/ui-tag.c b/ui-tag.c index f530224..9e54d2c 100644 --- a/ui-tag.c +++ b/ui-tag.c @@ -25,9 +25,9 @@ static void print_tag_content(char *buf) html_txt(buf); html(""); if (p) { - html(""); + html(""); + html(""); } } -- EW"); html_txt(++p); - html("