r4003: *** empty log message ***
[lml.git] / base.lisp
index 167082f159fcd8c64800aa4dd8839f5cc9eaf30f..3e59034436a5132777e9a8c54449ef325915ffec 100644 (file)
--- a/base.lisp
+++ b/base.lisp
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Aug 2002
 ;;;;
-;;;; $Id: base.lisp,v 1.7 2003/02/07 02:37:18 kevin Exp $
+;;;; $Id: base.lisp,v 1.10 2003/02/10 19:49:18 kevin Exp $
 ;;;;
 ;;;; This file, part of LML, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
@@ -26,7 +26,7 @@
   "<?xml version=\"1.0\" encoding=\"iso-8859-1\" standalone=\"yes\"?>")
 
 (defun xhtml-prologue-string ()
-  "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">")
+  "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">")
 
 (defvar *print-spaces* nil)
 (defvar *indent* 0)
@@ -73,7 +73,7 @@
 (defmacro with-attr-string (tag attr-string &body body)
   (let ((attr (gensym)))
   `(let ((,attr ,attr-string))
-     (lml-format "<~(~A~)~A>" ',tag
+     (lml-format "<~(~A~) ~A>" ',tag
              (if (and (stringp ,attr) (plusp (length ,attr)))
                  (format nil "~A" ,attr)
                ""))
@@ -85,7 +85,7 @@
 (defmacro with-no-endtag-attr-string (tag attr-string)
   (let ((attr (gensym)))
   `(let ((,attr ,attr-string))
-     (lml-format "<~(~A~)~A />" ',tag
+     (lml-format "<~(~A~) ~A />" ',tag
              (if (and (stringp ,attr) (plusp (length ,attr)))
                  (format nil "~A" ,attr)
                "")))))
   `(with a :href ,dest :class (quote ,class) ,@body))
 
 (defmacro img (dest &rest args)
-  `(with-no-endtag :src ,dest ,@args))
+  `(with-no-endtag img :src ,dest ,@args))
 
 (defmacro input (&rest args)
   `(with-no-endtag input ,@args))