From b295d847396a9f1a836e959a750a740771f8327a Mon Sep 17 00:00:00 2001 From: Andrew Thornton Date: Sat, 15 Jan 2022 18:33:49 +0000 Subject: [PATCH 1/2] Remove accidental debugging in blob_excerpt.tmpl Unfortunately it appears that a small bit of debugging code was left in blob_excerpt.tmpl This breaks diff expansion causing #18281. Fix #18281 Signed-off-by: Andrew Thornton --- templates/repo/diff/blob_excerpt.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/diff/blob_excerpt.tmpl b/templates/repo/diff/blob_excerpt.tmpl index e529ed3bcd07..e848cd329833 100644 --- a/templates/repo/diff/blob_excerpt.tmpl +++ b/templates/repo/diff/blob_excerpt.tmpl @@ -19,7 +19,7 @@ {{end}} - {{$inlineDiff := $.section.GetComputedInlineDiffFor $line}}{{$inlineDiff}}{{$inlineDiff.Content}} + {{$inlineDiff := $.section.GetComputedInlineDiffFor $line}}{{$inlineDiff.Content}} {{else}} {{if $line.LeftIdx}}{{end}} From f0523cd1e841c6656bd65e5d1ef91219574a12eb Mon Sep 17 00:00:00 2001 From: Andrew Thornton Date: Sat, 15 Jan 2022 22:37:45 +0000 Subject: [PATCH 2/2] and the terminal line too Signed-off-by: Andrew Thornton --- templates/repo/diff/blob_excerpt.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/diff/blob_excerpt.tmpl b/templates/repo/diff/blob_excerpt.tmpl index e848cd329833..b3e80881fda1 100644 --- a/templates/repo/diff/blob_excerpt.tmpl +++ b/templates/repo/diff/blob_excerpt.tmpl @@ -68,7 +68,7 @@ {{end}} - {{$.section.GetComputedInlineDiffFor $line}} + {{$inlineDiff := $.section.GetComputedInlineDiffFor $line}}{{$inlineDiff.Content}} {{end}} {{end}}