Merge pull request #100 from mattn/to_slash
call ToSlash() to be slash separated paths also on Windows.
This commit is contained in:
commit
2026467100
|
@ -64,7 +64,7 @@ func Translate(c *Config) error {
|
||||||
|
|
||||||
for _, asset := range toc {
|
for _, asset := range toc {
|
||||||
relative, _ := filepath.Rel(wd, asset.Path)
|
relative, _ := filepath.Rel(wd, asset.Path)
|
||||||
if _, err = fmt.Fprintf(bfd, "// %s\n", relative); err != nil {
|
if _, err = fmt.Fprintf(bfd, "// %s\n", filepath.ToSlash(relative)); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user