diff --git a/templates/repo/commit_header.tmpl b/templates/repo/commit_header.tmpl
index 9604daf2b0..f0c094c9bd 100644
--- a/templates/repo/commit_header.tmpl
+++ b/templates/repo/commit_header.tmpl
@@ -181,11 +181,11 @@
{{ctx.Locale.Tr "repo.diff.parent"}}
{{range .Parents}}
{{if $.PageIsWiki}}
-
+
{{ShortSha .}}
{{else}}
-
+
{{ShortSha .}}
{{end}}
@@ -200,7 +200,7 @@
{{ShortSha .CommitID}}
{{else}}
-
+
{{ShortSha .CommitID}}
{{end}}
diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl
index c0e4f5ca46..1c2f793d1c 100644
--- a/templates/repo/commits_table.tmpl
+++ b/templates/repo/commits_table.tmpl
@@ -10,11 +10,11 @@
{{if .IsDiffCompare}}
diff --git a/templates/repo/editor/cherry_pick.tmpl b/templates/repo/editor/cherry_pick.tmpl
index 49b210f75c..362b8d52ee 100644
--- a/templates/repo/editor/cherry_pick.tmpl
+++ b/templates/repo/editor/cherry_pick.tmpl
@@ -11,7 +11,7 @@