X-Git-Url: http://git.kpe.io/?p=hyperobject.git;a=blobdiff_plain;f=views.lisp;fp=views.lisp;h=dde22fcc913fa4a371139a95b041d7b9c7a683ee;hp=db6bba64d316a2ad8f7bbe00499c06e230deccf9;hb=4fbb95a12e2c7f729629c9875ce95fe086eee7bb;hpb=7488e60672318e28e08f87c64fe3868690dbfd7b
diff --git a/views.lisp b/views.lisp
index db6bba6..dde22fc 100644
--- a/views.lisp
+++ b/views.lisp
@@ -244,35 +244,37 @@
(defun ppfc-html-labels (label name type formatter cdata print-func)
(vector-push-extend '(write-string "" s) print-func)
- (vector-push-extend `(write-string ,label s) print-func)
+ (vector-push-extend `(when (stringp ,label) (write-string ,label s)) print-func)
(vector-push-extend '(write-string " " s) print-func)
(ppfc-html label name type formatter cdata print-func))
(defun ppfc-xhtml-labels (label tag name type formatter cdata print-func)
(vector-push-extend '(write-string "" s) print-func)
- (vector-push-extend `(write-string ,label s) print-func)
+ (vector-push-extend `(when (stringp ,label) (write-string ,label s)) print-func)
(vector-push-extend '(write-string " " s) print-func)
(ppfc-html tag name type formatter cdata print-func))
(defun ppfc-xml-labels (label tag name type formatter cdata print-func)
(vector-push-extend '(write-string " " s) print-func)
(ppfc-xml tag name type formatter cdata print-func))
(defun ppfc-html-link (name type formatter cdata nlink print-func)
(declare (fixnum nlink))
(vector-push-extend '(write-char #\< s) print-func)
- (vector-push-extend `(write-string (nth ,(+ nlink nlink) links) s) print-func)
+ (vector-push-extend `(when (stringp (nth ,(+ nlink nlink) links))
+ (write-string (nth ,(+ nlink nlink) links) s)) print-func)
(vector-push-extend '(write-char #\> s) print-func)
(vector-push-extend `(write-ho-value x ',name ',type ',formatter ,cdata s) print-func)
(vector-push-extend '(write-string "" s) print-func)
- (vector-push-extend `(write-string (nth ,(+ nlink nlink 1) links) s) print-func)
+ (vector-push-extend `(when (stringp (nth ,(+ nlink nlink 1) links))
+ (write-string (nth ,(+ nlink nlink 1) links) s)) print-func)
(vector-push-extend '(write-char #\> s) print-func))
(defun ppfc-html-link-labels (label name type formatter cdata nlink print-func)
(vector-push-extend '(write-string "" s) print-func)
- (vector-push-extend `(write-string ,label s) print-func)
+ (vector-push-extend `(when (stringp ,label) (write-string ,label s)) print-func)
(vector-push-extend '(write-string " " s) print-func)
(ppfc-html-link name type formatter cdata nlink print-func))