colornames: update SVG 1.1 spec URL
The Scalable Vector Graphics (SVG) 1.1 specification URL has changed. The old URL, https://www.w3.org/TR/SVG/, now hosts the SVG 2 spec. SVG 1.1 spec has moved to https://www.w3.org/TR/SVG11/. This change makes this package go generate successfully with no diff. Change-Id: Ifa788b1bb47748610b3adc0ac96692c00bcb3158 Reviewed-on: https://go-review.googlesource.com/c/148566 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
fe2fa19765
commit
55919307b5
|
@ -5,7 +5,7 @@
|
|||
// +build ignore
|
||||
|
||||
// This program generates table.go from
|
||||
// http://www.w3.org/TR/SVG/types.html#ColorKeywords
|
||||
// https://www.w3.org/TR/SVG11/types.html#ColorKeywords
|
||||
package main
|
||||
|
||||
import (
|
||||
|
@ -165,7 +165,7 @@ func writeColorNames(w io.Writer, m map[string]color.RGBA) {
|
|||
fmt.Fprintln(w, ")")
|
||||
}
|
||||
|
||||
const url = "http://www.w3.org/TR/SVG/types.html"
|
||||
const url = "https://www.w3.org/TR/SVG11/types.html"
|
||||
|
||||
func main() {
|
||||
res, err := http.Get(url)
|
||||
|
|
Loading…
Reference in New Issue
Block a user