]> source.dussan.org Git - gitea.git/commitdiff
Fix double blob-hunk (#19404)
authorGusted <williamzijl7@hotmail.com>
Fri, 15 Apr 2022 11:43:38 +0000 (11:43 +0000)
committerGitHub <noreply@github.com>
Fri, 15 Apr 2022 11:43:38 +0000 (19:43 +0800)
- Don't show the blob-hunk twice.

templates/repo/diff/section_unified.tmpl

index dbd0ca269f33c4badcc3da3aa63249d68a3633e2..2fe3f6490389aebc8e17d578307468f8ec0d86aa 100644 (file)
@@ -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}}{{/*