[cl-who-devel] Expected behavior?
Pascal J. Bourguignon
pjb at informatimago.com
Tue Oct 26 03:36:22 UTC 2010
Andrei Stebakov <lispercat at gmail.com> writes:
> I wonder if following two statements should produce the same result:
>
> (with-html-output-to-string (*standard-output* nil :indent t)
> (:p "text"))
>
> and
> (with-html-output-to-string (*standard-output* nil :indent t)
> (:p (str (concatenate 'string "te" "xt"))))
>
> So far the first statement gives:
> "
> <p>
> text
> </p>"
>
> The second:
> "
> <p>text
> </p>"
>
> What happens to the indentation in the second case?
> I am using cl-who 0.11.1 with sblc 1.0.37 on Linux
They're the same result. Since it's HTML, sameness should be defined as
what will be rendered by an HTML engine, and the HTML standards specify
that those two sources produce exactly the same rendering.
--
__Pascal Bourguignon__ http://www.informatimago.com/
More information about the Cl-who-devel
mailing list