diff --git a/godoc/static/makestatic.go b/godoc/static/makestatic.go index f5e32725..f48313c2 100644 --- a/godoc/static/makestatic.go +++ b/godoc/static/makestatic.go @@ -84,7 +84,7 @@ func makestatic() error { } defer f.Close() w := bufio.NewWriter(f) - fmt.Fprintf(w, "%v\n\npackage static\n\n", warning) + fmt.Fprintf(w, "%v\npackage static\n\n", warning) fmt.Fprintf(w, "var Files = map[string]string{\n") for _, fn := range files { b, err := ioutil.ReadFile(fn) @@ -118,4 +118,4 @@ func sanitize(b []byte) []byte { return bytes.Replace(b, []byte("\xEF\xBB\xBF"), []byte("`+\"\\xEF\\xBB\\xBF\"+`"), -1) } -const warning = "// DO NOT EDIT ** This file was generated by \"go generate\" ** DO NOT EDIT //" +const warning = "// Code generated by \"makestatic\"; DO NOT EDIT\n" diff --git a/godoc/static/static.go b/godoc/static/static.go index 9c94e713..c234fa4c 100644 --- a/godoc/static/static.go +++ b/godoc/static/static.go @@ -1,4 +1,4 @@ -// DO NOT EDIT ** This file was generated by "go generate" ** DO NOT EDIT // +// Code generated by "makestatic"; DO NOT EDIT package static