ruricolist/spinneret

textarea not rendered correctly

Closed this issue · 0 comments

even with *print-pretty* bound to nil, generated html is indented and textarea is rendered incorrectly. here is a snippet of my generated html and how it renders:

<textarea class=pure-input-1-2 name=content placeholder=Content style=resize:none;width:100%;height:40rem required data-parsley-minlength=512>
         hello world
         </textarea></div><div class=pure-controls><button class=button-primary type=submit><span class="fa fa-check-square-o fa-fw"></span>Edit</button>

I selected the text in the image below to show the whitespace that should not be there, but exists because of the indenting/linewrapping in unexpected places around "hello world":

example

And here is some code that will reproduce it:

(spinneret:with-html (let ((*print-pretty*)) (:div (:textarea 123))))

#|
<div><textarea>
  123
  </textarea></div>
|#