X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=lml.cl;h=d4a4f5bb70a24330868ccf97f7810cda88d1a2d4;hb=738cfb24312aa0932ff71f3cbc296fd201ce6384;hp=b273b2c3f16f5702ad49bc5f33ec195faaff837d;hpb=f212998e69e8b67604a1f96faaf1ecacf693c5c3;p=lml.git diff --git a/lml.cl b/lml.cl index b273b2c..d4a4f5b 100644 --- a/lml.cl +++ b/lml.cl @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Aug 2002 ;;;; -;;;; $Id: lml.cl,v 1.1 2002/09/16 01:13:49 kevin Exp $ +;;;; $Id: lml.cl,v 1.4 2002/09/16 08:11:45 kevin Exp $ ;;;; ;;;; This file, part of LML, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -19,17 +19,12 @@ (declaim (optimize (debug 3) (speed 3) (safety 1) (compilation-speed 0))) (in-package :lml) -(defconstant +html4-prologue-string+ - (format nil - "~%")) +(defconstant +html4-prologue-string+ "") -(defconstant +xml-prologue-string+ - (format nil - "~%")) +(defconstant +xml-prologue-string+ "") (defconstant +xhtml-prologue-string+ - (format nil - "~%")) + "") (defvar *print-spaces* nil) (defvar *indent* 0) @@ -130,8 +125,8 @@ (defmacro xhtml-prologue () `(progn - (lml-print +xml-prologue-string+) - (lml-print +xhtml-prologue-string+))) + (lml-print "~A~%" +xml-prologue-string+) + (lml-print "~A~%" +xhtml-prologue-string+))) (defmacro link (dest &body body) `(with a :href ,dest ,@body)) @@ -161,6 +156,9 @@ (defmacro br () `(lml-print "
")) +(defmacro hr () + `(lml-print "
")) + (defmacro lml-tag-macro (tag) `(progn (defmacro ,tag (&body body) @@ -178,7 +176,7 @@ (defparameter *macro-list* '(a div span h1 h2 h3 h4 h5 h6 i b p li ul ol table tbody td tr body head html title pre tt u dl dt dd kbd code form)) - (export '(link link-c br img input meta meta-key)) + (export '(link link-c br hr img input meta meta-key)) (export *macro-list*)) (loop for i in *macro-list*