"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "vendor/golang.org/x/text/encoding/internal/identifier/gen.go" between
buildah-1.10.1.tar.gz and buildah-1.11.0.tar.gz

About: Buildah is a tool that facilitates building Open Container Initiative (OCI) container images.

gen.go  (buildah-1.10.1):gen.go  (buildah-1.11.0)
skipping to change at line 112 skipping to change at line 112
} }
case xml.StartElement: case xml.StartElement:
if x.Name.Local == "xref" { if x.Name.Local == "xref" {
inElem = true inElem = true
use := false use := false
for _, a := range x.Attr { for _, a := range x.Attr {
if a.Name.Local == "type" { if a.Name.Local == "type" {
use = use || a.Va lue != "person" use = use || a.Va lue != "person"
} }
if a.Name.Local == "data" && use { if a.Name.Local == "data" && use {
attr = a.Value + // Patch up URLs
" " to use https. From some links, the
// https version
is different from the http one.
s := a.Value
s = strings.Repla
ce(s, "http://", "https://", -1)
s = strings.Repla
ce(s, "/unicode/", "/", -1)
attr = s + " "
} }
} }
} }
case xml.EndElement: case xml.EndElement:
inElem = false inElem = false
fmt.Fprint(w, attr) fmt.Fprint(w, attr)
} }
} }
fmt.Fprint(w, "\n") fmt.Fprint(w, "\n")
} }
 End of changes. 1 change blocks. 
2 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)