ruricolist / spinneret

Common Lisp HTML5 generator
MIT License
369 stars 26 forks source link

closing tag seems to missing #65

Closed OrganicProgramming closed 1 year ago

OrganicProgramming commented 2 years ago

When I run following code (with SBCL 2.2.8 ):

(spinneret:with-html-string (:html (:body (:p "Test"))))

I get the following output:

"<html lang=en>
 <body>
  <p>Test
 </body>
</html>"

I.e. the closing </p> tag seems to be missing. Some weeks ago I did not observe this behavior so it could be introduced quite recently.

boogsbunny commented 1 year ago

same.

Why is it part of *end-tag-optional*?

edit: ah, I see. I take it that this is the case here too then:

https://github.com/ruricolist/spinneret/issues/58#issuecomment-1027906166

ruricolist commented 1 year ago

Yes, you can set *html-style* to :tree if you want to avoid this behavior.

OrganicProgramming commented 1 year ago

My bad, I learned today that the closing tag for <p> is not always needed. Thanks for the advice.