diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2020-03-24 05:30:49 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2020-03-24 05:30:54 +0100 |
commit | 82f8bee734b47e639a931048f9a6ccbfc85a8bb0 (patch) | |
tree | 532be4c6f50336118e0dd5bc0f378739de1f3429 /lisp/svg.el | |
parent | 78f76fe16e2737b40694f82af28d17a90a21ed7b (diff) | |
download | emacs-82f8bee734b47e639a931048f9a6ccbfc85a8bb0.tar.gz |
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.
Diffstat (limited to 'lisp/svg.el')
-rw-r--r-- | lisp/svg.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/svg.el b/lisp/svg.el index 370c9c04e76..7aadbc23593 100644 --- a/lisp/svg.el +++ b/lisp/svg.el @@ -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) |