aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorGusted <williamzijl7@hotmail.com>2022-04-15 11:43:38 +0000
committerGitHub <noreply@github.com>2022-04-15 19:43:38 +0800
commit9053096f1f62d155a60431093aea062ac784eba6 (patch)
tree650870a618eaa44a97817015cfd2ecd8883dda08 /templates
parentb8911fb45673fdc3fce587892c4d9215e7c15019 (diff)
downloadgitea-9053096f1f62d155a60431093aea062ac784eba6.tar.gz
gitea-9053096f1f62d155a60431093aea062ac784eba6.zip
Fix double blob-hunk (#19404)
- Don't show the blob-hunk twice.
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/diff/section_unified.tmpl4
1 files changed, 1 insertions, 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}}{{/*