about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorAlan Pearce2014-09-12 20:52:00 +0100
committerAlan Pearce2014-09-12 20:52:00 +0100
commitf42e0bc7576bf3a4ddca02579f98b9fa19952ae0 (patch)
tree601d41ce937865b58e488a6a35055a2b5168cd91 /src
parent90d4ef777d61af7ad1990e9b3a65e42f591ed1ce (diff)
downloadmicroformats-f42e0bc7576bf3a4ddca02579f98b9fa19952ae0.tar.lz
microformats-f42e0bc7576bf3a4ddca02579f98b9fa19952ae0.tar.zst
microformats-f42e0bc7576bf3a4ddca02579f98b9fa19952ae0.zip
Add support for parsing empty br/hr tags
Diffstat (limited to 'src')
-rw-r--r--src/microformats/parser.clj2
1 files changed, 1 insertions, 1 deletions
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."