weavejester / hiccup

Fast library for rendering HTML in Clojure
http://weavejester.github.io/hiccup
Eclipse Public License 1.0
2.68k stars 174 forks source link

Html outputs as one long line of html... #96

Closed ghost closed 10 years ago

ghost commented 10 years ago

Using the latest version (1.0.5), I don't see any line breaks or formatting of the html output (see the image below). Am I doing something wrong here with how I'm using the "html" function?

http://cubeupload.com/im/pwbndI.png

Thanks for your time; from browsing through previous issues, I didn't see mention of output comprising of a single line.

weavejester commented 10 years ago

Hiccup doesn't currently indent its output. Doing so would be somewhat slower, as you'd have to build up a DOM beforehand in order to get the indents of things like pre correct.

ghost commented 10 years ago

okay, gotcha... so this is the intended behavior. thanks for the quick reply