Skip to content

Commit

Permalink
Remove dependence on ordering of attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
ajstarks committed Feb 26, 2018
1 parent b7e3ba6 commit 644b8db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions float/svg.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func (svg *SVG) Startraw(ns ...string) {
// End the SVG document
func (svg *SVG) End() { svg.println("</svg>") }

// linkembed defines an element with a specified type,
// linkembed defines an element with a specified type,
// (for example "application/javascript", or "text/css").
// if the first variadic argument is a link, use only the link reference.
// Otherwise, treat those arguments as the text of the script (marked up as CDATA).
Expand Down Expand Up @@ -891,7 +891,7 @@ func endstyle(s []string, endtag string) string {
if strings.Index(s[i], "=") > 0 {
nv += (s[i]) + " "
} else {
nv += style(s[i])
nv += style(s[i]) + " "
}
}
return nv + endtag
Expand Down

0 comments on commit 644b8db

Please sign in to comment.