Don't add repeated xlmns:xlink declarations in svg-create
* lisp/svg.el (svg-create): Fix previous unconditional addition of the xmlns:xlink declaration -- callers may already add one, and having it twice is something most svg libraries doesn't like.
This commit is contained in:
parent
78f76fe16e
commit
82f8bee734
1 changed files with 2 additions and 1 deletions
|
@ -70,7 +70,8 @@ any further elements added."
|
|||
(height . ,height)
|
||||
(version . "1.1")
|
||||
(xmlns . "http://www.w3.org/2000/svg")
|
||||
(xmlns:xlink . "http://www.w3.org/1999/xlink")
|
||||
,@(unless (plist-get args :xmlns:xlink)
|
||||
'((xmlns:xlink . "http://www.w3.org/1999/xlink")))
|
||||
,@(svg--arguments nil args))))
|
||||
|
||||
(defun svg-gradient (svg id type stops)
|
||||
|
|
Loading…
Add table
Reference in a new issue