Inserted spaces and <pre>
dfmorrison opened this issue · 2 comments
dfmorrison commented
I think *suppress-inserted-spaces* t
should be in effect by default when emitting a <pre>
.
ruricolist commented
Can you give me an example? fill-text
isn't called in a <pre>
. Or are you nesting other HTML elements inside a <pre>
?
dfmorrison commented
(with-html-string (:pre "foo" #\Newline "b" "a" "r")) ⇒
"<pre>foo
b a r</pre>"
Note the leading space before the 'b', as well as those between the strings in the second line. But with *suppress-inserted-spaces* t
all seems well:
(let ((*suppress-inserted-spaces* t))
(with-html-string (:pre "foo" #\Newline "b" "a" "r"))) ⇒
"<pre>foo
bar</pre>"