Fixed unterminating recursion in who-ps-html when element has attributes but no content.
authorVladimir Sedach <vsedach@gmail.com>
Thu, 4 Dec 2008 06:34:26 +0000 (23:34 -0700)
committerVladimir Sedach <vsedach@gmail.com>
Thu, 4 Dec 2008 06:34:26 +0000 (23:34 -0700)
src/lib/ps-html.lisp

index d2d96cc..d1488cf 100644 (file)
@@ -52,7 +52,8 @@
                       (push (format nil "<~A" (car form)) r)
                       (let (content)
                         (labels ((process-attributes (attrs)
-                                   (cond ((= 1 (length attrs)) (setf content (car attrs)))
+                                   (cond ((null attrs) )
+                                         ((= 1 (length attrs)) (setf content (car attrs)))
                                          ((consp (car attrs))
                                           (push `(if ,(first attrs)
                                                      (concat-string ,(format nil " ~A=\"" (second attrs)) ,(third attrs) "\"")