fix
This commit is contained in:
parent
e850b24b25
commit
26169f5aba
1 changed files with 3 additions and 3 deletions
|
|
@ -96,6 +96,9 @@ func (el *ThemableElement) SetMaskUrl(url string) {
|
|||
func (el *ThemableElement) Render() string {
|
||||
out := "<" + el.tag
|
||||
|
||||
if len(el.Href) > 0 {
|
||||
out += fmt.Sprintf(` href="%s"`, el.Href)
|
||||
}
|
||||
if el.X != math.MaxFloat64 {
|
||||
out += fmt.Sprintf(` x="%f"`, el.X)
|
||||
}
|
||||
|
|
@ -148,9 +151,6 @@ func (el *ThemableElement) Render() string {
|
|||
if len(el.Transform) > 0 {
|
||||
out += fmt.Sprintf(` transform="%s"`, el.Transform)
|
||||
}
|
||||
if len(el.Href) > 0 {
|
||||
out += fmt.Sprintf(` href="%s"`, el.Href)
|
||||
}
|
||||
if len(el.Xmlns) > 0 {
|
||||
out += fmt.Sprintf(` xmlns="%s"`, el.Xmlns)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue