From 8032a8bb510c714948c3e31d23f29c3bd65fb507 Mon Sep 17 00:00:00 2001 From: zPlus Date: Sat, 6 Aug 2022 08:38:48 +0200 Subject: [PATCH] Fix broken indentation in commit page. Do not collapse white spaces when showing a commit diff in HTML. --- static/css/clif.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/css/clif.css b/static/css/clif.css index 9380f26..98a2bf1 100644 --- a/static/css/clif.css +++ b/static/css/clif.css @@ -375,6 +375,10 @@ div.commit { div.commit .diff .insertion { background-color: #e6ffed; } + + div.commit .diff .content { + white-space: pre-wrap; + } /* Alternate background color used when displaying table data */ .striped > *:nth-child(even) {