mirror of
https://github.com/gogs/gogs.git
synced 2025-12-23 16:50:02 +01:00
commit: fix unexpected truncation in title
The commit message should not be treated as locale at all.
This commit is contained in:
@@ -28,7 +28,7 @@ func Test_diffsToHTML(t *testing.T) {
|
||||
{Type: dmp.DiffEqual, Text: " biz"},
|
||||
},
|
||||
lineType: git.DiffLineAdd,
|
||||
expHTML: template.HTML(`+ foo <span class="added-code">bar</span> biz`),
|
||||
expHTML: template.HTML(`+foo <span class="added-code">bar</span> biz`),
|
||||
},
|
||||
{
|
||||
diffs: []dmp.Diff{
|
||||
@@ -38,7 +38,7 @@ func Test_diffsToHTML(t *testing.T) {
|
||||
{Type: dmp.DiffEqual, Text: " biz"},
|
||||
},
|
||||
lineType: git.DiffLineDelete,
|
||||
expHTML: template.HTML(`- foo <span class="removed-code">bar</span> biz`),
|
||||
expHTML: template.HTML(`-foo <span class="removed-code">bar</span> biz`),
|
||||
},
|
||||
}
|
||||
for _, test := range tests {
|
||||
|
||||
Reference in New Issue
Block a user