From dbfa95bf2335d8fd634c4a537d8690975347aaae Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 11 Dec 2025 14:24:10 -0800 Subject: [PATCH] Fix format --- templates/repo/diff/section_unified.tmpl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/repo/diff/section_unified.tmpl b/templates/repo/diff/section_unified.tmpl index b4621dfa1c..a5f001303f 100644 --- a/templates/repo/diff/section_unified.tmpl +++ b/templates/repo/diff/section_unified.tmpl @@ -19,11 +19,11 @@ {{end}} {{else}} - {{- $leftAnchor := Iif $line.LeftIdx (printf "diff-%sL%d" $file.NameHash $line.LeftIdx) "" -}} - - {{- $rightAnchor := Iif $line.RightIdx (printf "diff-%sR%d" $file.NameHash $line.RightIdx) "" -}} - - {{end}} + {{- $leftAnchor := Iif $line.LeftIdx (printf "diff-%sL%d" $file.NameHash $line.LeftIdx) "" -}} + + {{- $rightAnchor := Iif $line.RightIdx (printf "diff-%sR%d" $file.NameHash $line.RightIdx) "" -}} + + {{end}} {{$inlineDiff := $section.GetComputedInlineDiffFor $line ctx.Locale -}} {{- if $inlineDiff.EscapeStatus.Escaped -}}