🏁 Fix output's path jump failed on Windows

This commit is contained in:
Liang Ding 2017-03-15 22:23:23 +08:00
parent bfbc47c3c4
commit a93a52197d
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ func parsePath(curDir, outputLine string) string {
column = parts[2]
}
tagStart := `<span class="path" data-path="` + filepath.Join(curDir, file) + `" data-line="` + line +
tagStart := `<span class="path" data-path="` + filepath.ToSlash(filepath.Join(curDir, file)) + `" data-line="` + line +
`" data-column="` + column + `">`
text := file + ":" + line
if hasColumn {