Discussion:
Expected behavior?
Andrei Stebakov
2010-10-25 17:01:15 UTC
Permalink
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

Thank you,
Andrei
Pascal J. Bourguignon
2010-10-26 03:36:22 UTC
Permalink
Post by Andrei Stebakov
(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"))))
"
<p>
text
</p>"
"
<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/
Loading...