Jeff Cunningham
2007-12-29 18:48:25 UTC
Hi,
I ran into some unexpected behavior this morning when using the pre
directive. Here is an example:
(with-html-output (*standard-output* nil :prologue nil :indent t)
(:body
(:pre "This block of text
should all be justified to the left
edge of the window when rendered
by a browser, even if the HTML itself
is indented, no?")))
What is generated is the following:
<body>
<pre>
This block of text
should all be justified to the left
edge of the window when rendered
by a browser, even if the HTML itself
is indented, no?
</pre>
</body>
Which will "indent" the first line unexpectedly, as well as pre-pending
an unexpected line break. I realize that I can turn off indenting in my
output, but this seems inelegant. It seems like the pre directive needs
to be handled as a special case.
--Jeff
I ran into some unexpected behavior this morning when using the pre
directive. Here is an example:
(with-html-output (*standard-output* nil :prologue nil :indent t)
(:body
(:pre "This block of text
should all be justified to the left
edge of the window when rendered
by a browser, even if the HTML itself
is indented, no?")))
What is generated is the following:
<body>
<pre>
This block of text
should all be justified to the left
edge of the window when rendered
by a browser, even if the HTML itself
is indented, no?
</pre>
</body>
Which will "indent" the first line unexpectedly, as well as pre-pending
an unexpected line break. I realize that I can turn off indenting in my
output, but this seems inelegant. It seems like the pre directive needs
to be handled as a special case.
--Jeff