call ToSlash() to be slash separated paths also on Windows.

pull/4/head
Yasuhiro Matsumoto 2015-07-03 11:51:55 +09:00
parent 38ae5514e6
commit bd8da9c54b
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ func Translate(c *Config) error {
for _, asset := range toc {
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
}
}