[cl-who-devel] Re: indent textarea

Toby Allsopp toby at mi6.gen.nz
Thu Mar 15 07:02:54 UTC 2007


Inge Bylemans writes:

> Hi,
>
> When I put the :indent option to true in with-html-output-to-string, the
> textarea is filled with spaces, even when it is not empty, a new line start
> with spaces behind it.  Is there a way to put :indent to true without side
> effect on my textarea?

What I do is to wrap the textarea in another with-html-output without
:indent t, e.g.

(with-html-output-to-string (s nil :prologue t :indent t)
 (with-html-output (s)
  (:textarea :name name
             :rows rows
             :cols cols
             (esc (or value "")))))

Cheers,
Toby.




More information about the Cl-who-devel mailing list