<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -119,7 +119,7 @@
   &quot;Attempt to pre-render a HTML tag.&quot;
   [tag-name content]
   (if (literal? tag-name)
-    `(list ~@(render-tag tag-name content))
+    (render-tag tag-name content)
     `(render-tag ~tag-name ~content)))
 
 (defn compile-attrs
@@ -128,21 +128,22 @@
   (if (map? attrs)
     (render-attrs attrs content)
     (if (not (literal? attrs))
-     `(render-attrs ~attrs ~content)
+     `((render-attrs ~attrs ~content))
       content)))
 
 (defn compile-content
   &quot;Attempt to pre-render the contents of a tag.&quot;
   [content]
-  (list*
-    &quot;&gt;&quot;
-    (if (map? (first content))
-      (mapcat compile-html (rest content))
-      (if (literal? (first content))
-        (mapcat compile-html content)
-        `(concat
-           (render-html ~(take 2 content))
-          ~(compile-html (drop 2 content)))))))
+  `(cons
+     &quot;&gt;&quot;
+     ~@(if (map? (first content))
+        (mapcat compile-html (rest content))
+        (if (literal? (first content))
+          (mapcat compile-html content)
+          (concat
+            (for [x (take 2 content)]
+              `(render-html ~x))
+            (map compile-html (drop 2 content)))))))
 
 (defmethod compile-html ::vector
   [[tag &amp; content]]
@@ -153,8 +154,8 @@
 (defmethod compile-html ::form
   [form]
   (if (quoted? form)
-    (render-html form)
-   `(render-html ~form)))
+    `(render-html form)
+    `((render-html ~form))))
 
 (defmethod compile-html :default
   [x]
@@ -174,4 +175,8 @@
 (defmacro html
   &quot;Efficiently render a Clojure data structure into a seq of HTML.&quot;
   [&amp; content]
-  `(list ~@(map (comp collapse-strs compile-html) content)))
+  `(concat 
+     ~@(for [x (collapse-strs (mapcat compile-html content))]
+         (if (string? x)
+           `(list ~x)
+           x))))</diff>
      <filename>src/hiccup.clj</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3c001ec9152c12aa8a4cbae047b15e5bed550bb0</id>
    </parent>
  </parents>
  <author>
    <name>weavejester</name>
    <email>jreeves@weavejester.com</email>
  </author>
  <url>http://github.com/weavejester/hiccup/commit/fd3857ca5678ad6fc51c9dfd874d9eb087d2b183</url>
  <id>fd3857ca5678ad6fc51c9dfd874d9eb087d2b183</id>
  <committed-date>2009-11-07T09:00:56-08:00</committed-date>
  <authored-date>2009-11-07T09:00:56-08:00</authored-date>
  <message>Corrected some issues with compile-html</message>
  <tree>d9afa069a0e53337bd26452d4838da657731246d</tree>
  <committer>
    <name>weavejester</name>
    <email>jreeves@weavejester.com</email>
  </committer>
</commit>
