X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=htmlgen.lisp;h=710b3681532ab70b2301981ca229e74f30d76a4c;hb=0b428c77a4c58c100bffd15e625b37ded17b6986;hp=b920ec0e8baf953b19b96db5fe83c3ccd9831b01;hpb=9301f992fc419b10953de8fd2075099c00b90d0e;p=lml2.git
diff --git a/htmlgen.lisp b/htmlgen.lisp
index b920ec0..710b368 100644
--- a/htmlgen.lisp
+++ b/htmlgen.lisp
@@ -1,6 +1,6 @@
;; -*- mode: common-lisp; package: lml2 -*-
;;
-;; $Id: htmlgen.lisp,v 1.18 2003/07/21 16:36:22 kevin Exp $
+;; $Id: htmlgen.lisp,v 1.21 2003/08/02 10:03:10 kevin Exp $
;;
;; copyright (c) 1986-2000 Franz Inc, Berkeley, CA
;; copyright (c) 2003 Kevin Rosenberg
@@ -64,23 +64,21 @@
((atom form)
(flush-strings)
(push form res))
+ ((and (eq (car form) 'cl:write-string)
+ (stringp (cadr form)))
+ (if strs
+ (if (eq last-stream (third form))
+ (setq strs (concatenate 'string strs (second form)))
+ (progn
+ (flush-strings)
+ (setq strs (second form))
+ (setq last-stream (third form))))
+ (progn
+ (setq strs (second form))
+ (setq last-stream (third form)))))
(t
- (cond
- ((and (eq (car form) 'cl:write-string)
- (stringp (cadr form)))
- (if strs
- (if (eq last-stream (third form))
- (setq strs (concatenate 'string strs (second form)))
- (progn
- (flush-strings)
- (setq strs (second form))
- (setq last-stream (third form))))
- (progn
- (setq strs (second form))
- (setq last-stream (third form)))))
- (t
- (flush-strings)
- (push form res)))))))))
+ (flush-strings)
+ (push (post-process-html-forms form) res)))))))
(defmacro html-out-stream-check (stream)
@@ -815,19 +813,21 @@
;; must use syntax
(declare (ignore ent args argsp))
`(progn
+ #+ignore
(write-string "" *html-stream*))))
(named-function html-comment-print-function
(lambda (ent cmd args form subst unknown stream)
(declare (ignore ent cmd args subst unknown))
- (format stream ""
+ (format stream ""
(cadr form)))))
(def-special-html :nbsp