From f42e0bc7576bf3a4ddca02579f98b9fa19952ae0 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 12 Sep 2014 20:52:00 +0100 Subject: Add support for parsing empty br/hr tags --- src/microformats/parser.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/microformats/parser.clj b/src/microformats/parser.clj index 959e1af..94e8381 100644 --- a/src/microformats/parser.clj +++ b/src/microformats/parser.clj @@ -43,7 +43,7 @@ :abbr (-> el :attrs :title) :data (-> el :attrs :value) :input (-> el :attrs :value) - (first (:content el)))) + (or (first (:content el)) ""))) (defn parse-p "Parse p-* classes within HTML element." -- cgit 1.4.1