commit: fix unexpected truncation in title

The commit message should not be treated as locale at all.
This commit is contained in:
ᴜɴᴋɴᴡᴏɴ
2020-03-09 02:08:53 +08:00
parent bebaf4c112
commit e87f1107ca
3 changed files with 11 additions and 7 deletions

View File

@@ -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 {