diff --git a/tools/spellcheck/main.go b/tools/spellcheck/main.go index 375f5244..10a51c92 100644 --- a/tools/spellcheck/main.go +++ b/tools/spellcheck/main.go @@ -278,7 +278,8 @@ func checkFile(path string) error { fmt.Printf("Possible locations in markdown:\n") for _, loc := range possibleLocations { - fmt.Printf(" %s:%d:%d\n", loc.file, loc.line, loc.column+m.offset) + noRoot := strings.TrimPrefix(strings.TrimPrefix(loc.file, *projectroot), "/") + fmt.Printf(" %s:%d:%d\n", noRoot, loc.line, loc.column+m.offset) } } fmt.Println()