From 9053096f1f62d155a60431093aea062ac784eba6 Mon Sep 17 00:00:00 2001 From: Gusted <williamzijl7@hotmail.com> Date: Fri, 15 Apr 2022 11:43:38 +0000 Subject: [PATCH] Fix double blob-hunk (#19404) - Don't show the blob-hunk twice. --- templates/repo/diff/section_unified.tmpl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/templates/repo/diff/section_unified.tmpl b/templates/repo/diff/section_unified.tmpl index dbd0ca269f..2fe3f64903 100644 --- a/templates/repo/diff/section_unified.tmpl +++ b/templates/repo/diff/section_unified.tmpl @@ -31,9 +31,7 @@ {{if eq .GetType 4}} <td class="chroma lines-code blob-hunk">{{/* */}}<code {{if $inlineDiff.EscapeStatus.Escaped}}class="code-inner has-escaped" title="{{$.root.i18n.Tr "repo.line_unicode"}}"{{else}}class="code-inner"{{end}}>{{$inlineDiff.Content}}</code>{{/* - */}} - {{$line.Content}} - </td> + */}}</td> {{else}} <td class="chroma lines-code{{if (not $line.RightIdx)}} lines-code-old{{end}}">{{/* */}}{{if and $.root.SignedUserID $.root.PageIsPullFiles}}{{/*