From: Kevin M. Rosenberg Date: Tue, 9 Apr 2013 07:37:16 +0000 (-0600) Subject: Ignore null cdata X-Git-Url: http://git.kpe.io/?p=kmrcl.git;a=commitdiff_plain;h=12026eac09e773e83887a6073d5a034979ce7043 Ignore null cdata --- diff --git a/xml-utils.lisp b/xml-utils.lisp index a3305ca..fc80feb 100644 --- a/xml-utils.lisp +++ b/xml-utils.lisp @@ -81,6 +81,8 @@ and position of character following end tag." (defun write-cdata (str s) (declare (simple-string str) (optimize (speed 3) (safety 0) (space 0))) + (unless str + (return-from write-cdata nil)) (do ((len (length str)) (i 0 (1+ i))) ((= i len) str) @@ -171,4 +173,3 @@ and position of character following end tag." :organization organization :type type :label label :language language :url url :entities entities)) stream) -