diff options
| author | Lars Ingebrigtsen | 2020-03-24 05:30:49 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2020-03-24 05:31:27 +0100 |
| commit | 4860530f3c130c6f854ea83dcc03f59e535a33ba (patch) | |
| tree | d01a37edb283a80896272505f72b061cc867c13b | |
| parent | 8db6b432bb812923c44b94b7bf087dd52d39e345 (diff) | |
| download | emacs-4860530f3c130c6f854ea83dcc03f59e535a33ba.tar.gz emacs-4860530f3c130c6f854ea83dcc03f59e535a33ba.zip | |
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.
| -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." | |||
| 70 | (height . ,height) | 70 | (height . ,height) |
| 71 | (version . "1.1") | 71 | (version . "1.1") |
| 72 | (xmlns . "http://www.w3.org/2000/svg") | 72 | (xmlns . "http://www.w3.org/2000/svg") |
| 73 | (xmlns:xlink . "http://www.w3.org/1999/xlink") | 73 | ,@(unless (plist-get args :xmlns:xlink) |
| 74 | '((xmlns:xlink . "http://www.w3.org/1999/xlink"))) | ||
| 74 | ,@(svg--arguments nil args)))) | 75 | ,@(svg--arguments nil args)))) |
| 75 | 76 | ||
| 76 | (defun svg-gradient (svg id type stops) | 77 | (defun svg-gradient (svg id type stops) |