From 61e93a3480da3295145c9f015a852ea9114f5be0 Mon Sep 17 00:00:00 2001 From: Jeff Rabinowitz Date: Tue, 27 Oct 2015 22:58:22 -0400 Subject: [PATCH] fixed bug with threading macro in wrong order. fixed bug with where space not present between tag and class for top level ul/ol.. --- src/cryogen_core/toc.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cryogen_core/toc.clj b/src/cryogen_core/toc.clj index 0230d75..d0afb95 100644 --- a/src/cryogen_core/toc.clj +++ b/src/cryogen_core/toc.clj @@ -54,7 +54,7 @@ contents, while :ul will result in an unordered list. The default is an ordered list." (let [li-tags (list-type _list-types) - top-tag (li-tags -> first (subs 1 3))] + top-tag (-> li-tags first (subs 1 3))] (-> html (.getBytes "UTF-8") (java.io.ByteArrayInputStream.) @@ -63,4 +63,4 @@ (get-headings) (make-links li-tags) (clojure.string/replace-first - (re-pattern top-tag) (str top-tag "class=\"contents\""))))) + (re-pattern top-tag) (str top-tag " class=\"contents\"")))))