diff --git a/templates/repo/diff/blob_excerpt.tmpl b/templates/repo/diff/blob_excerpt.tmpl
index 50ecd26621..9793b17b8f 100644
--- a/templates/repo/diff/blob_excerpt.tmpl
+++ b/templates/repo/diff/blob_excerpt.tmpl
@@ -5,33 +5,33 @@
{{if eq .GetType 4}}
{{$expandDirection := $line.GetExpandDirection}}
-
- |
+
+
{{$inlineDiff := $.section.GetComputedInlineDiffFor $line ctx.Locale}}{{/*
*/}}{{template "repo/diff/section_code" dict "diff" $inlineDiff}} |
{{else}}
@@ -39,10 +39,10 @@
{{if and $line.LeftIdx $inlineDiff.EscapeStatus.Escaped}}{{end}} |
{{if $line.LeftIdx}}{{end}} |
{{/*
- */}}{{if and $.SignedUserID $.PageIsPullFiles}}{{/*
+ */}}{{if and $.SignedUserID $.PageIsPullFiles}}{{/*
*/}}{{/*
+ */}}{{/*
*/}}{{end}}{{/*
*/}}{{if $line.LeftIdx}}{{template "repo/diff/section_code" dict "diff" $inlineDiff}}{{else}}{{/*
*/}} {{/*
@@ -52,10 +52,10 @@
| {{if and $line.RightIdx $inlineDiff.EscapeStatus.Escaped}}{{end}} |
{{if $line.RightIdx}}{{end}} |
{{/*
- */}}{{if and $.SignedUserID $.PageIsPullFiles}}{{/*
+ */}}{{if and $.SignedUserID $.PageIsPullFiles}}{{/*
*/}}{{/*
+ */}}{{/*
*/}}{{end}}{{/*
*/}}{{if $line.RightIdx}}{{template "repo/diff/section_code" dict "diff" $inlineDiff}}{{else}}{{/*
*/}} {{/*
@@ -64,12 +64,12 @@
{{end}}
{{if $line.Comments}}
- |
- {{end}}
+
+ {{end}}
{{end}}
{{else}}
{{range $k, $line := $.section.Lines}}
@@ -78,32 +78,32 @@
{{if eq .GetType 4}}
{{$expandDirection := $line.GetExpandDirection}}
- |
{{else}}
|
@@ -112,18 +112,22 @@
{{if $inlineDiff.EscapeStatus.Escaped}}{{end}} |
|
- {{if and $.SignedUserID $.PageIsPullFiles}}
-
- {{end}}
- {{$inlineDiff.Content}} |
+ {{if and $.SignedUserID $.PageIsPullFiles}}
+
+ {{end}}
+
+ {{$inlineDiff.Content}}
+
+
{{if $line.Comments}}
-
- {{end}}
+
+ {{end}}
{{end}}
{{end}}
diff --git a/templates/repo/diff/section_split.tmpl b/templates/repo/diff/section_split.tmpl
index fb432bf4ff..3d36b41697 100644
--- a/templates/repo/diff/section_split.tmpl
+++ b/templates/repo/diff/section_split.tmpl
@@ -20,28 +20,28 @@
| {{$inlineDiff := $section.GetComputedInlineDiffFor $line ctx.Locale}}
diff --git a/templates/repo/diff/section_unified.tmpl b/templates/repo/diff/section_unified.tmpl
index f2b51cfa16..79f8139ae3 100644
--- a/templates/repo/diff/section_unified.tmpl
+++ b/templates/repo/diff/section_unified.tmpl
@@ -13,32 +13,32 @@
{{if eq .GetType 4}}
{{if $.root.AfterCommitID}}
{{$expandDirection := $line.GetExpandDirection}}
-
+ |
|
{{else}}