svg.lisp

45 views
Skip to first unread message

江畑拓哉

unread,
Mar 14, 2017, 3:44:13 PM3/14/17
to Land of Lisp
I think the script : svg.lisp(http://landoflisp.com/svg.lisp)  has a mistake.
You can see this in its script.

(defmacro svg (&body body)
  `(tag svg (xmlns "http://www.w3.org/2000/svg" 
             "xmlns:xlink" "http://www.w3.org/1999/xlink")
	,@body))

but I think this is...

(defmacro svg (width height &body body)
`(tag svg (xmlns "http://www.w3.org/2000/svg"
"xmlns:xlink" "http://www.w3.org/1999/xlink"
height ,height
width ,width)
,@body))

Please confirm this and inform correct script.
Reply all
Reply to author
Forward
0 new messages