about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorAlan Pearce2014-09-28 19:01:05 +0100
committerAlan Pearce2014-09-28 19:01:05 +0100
commitb1e28b8b122a46951ab8e17f010ab58fd06f9524 (patch)
tree3154931b9d9772cf281a71753b7657f7664985ed /test
parent5cc13ae3cec7a1778df2994d27a5594004f9a45a (diff)
downloadmicroformats-b1e28b8b122a46951ab8e17f010ab58fd06f9524.tar.lz
microformats-b1e28b8b122a46951ab8e17f010ab58fd06f9524.tar.zst
microformats-b1e28b8b122a46951ab8e17f010ab58fd06f9524.zip
Fix parse failure with spaces preceding HTML
Diffstat (limited to 'test')
-rw-r--r--test/microformats/parser_expectations.clj3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/microformats/parser_expectations.clj b/test/microformats/parser_expectations.clj
index 5f8eeef..1cbeedd 100644
--- a/test/microformats/parser_expectations.clj
+++ b/test/microformats/parser_expectations.clj
@@ -149,6 +149,9 @@
 (expect {:items [{:properties {:name '("Example User")} :type ["h-card"]}] :rels {}}
         (parse "<div class=\"h-card\"><p class=\"p-name\">  Example User  </p></div>"))
 
+(expect {:items [{:properties {:name '("Example User")} :type ["h-card"]}] :rels {}}
+        (parse "  <div class=\"h-card\"><p class=\"p-name\">Example User</p></div>"))
+
 (expect {:items [{:properties {:name '("Example User") :url '("http://example.com")}
                   :type ["h-card"]}] :rels {}}
         (parse "<div class=\"h-card\"><a class=\"p-name u-url\" href=\"http://example.com\">Example User</></div>"))