about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorAlan Pearce2014-10-11 10:30:09 +0100
committerAlan Pearce2014-10-11 10:30:09 +0100
commite81f922f1522030ac801c9f27b8732f0e81d2e08 (patch)
tree92b484b838b15bfa9a4445f0146b3e491cd13a69 /test
parent4debb2f471188fdd17a03f7250050b8e83ae9b32 (diff)
downloadmicroformats-e81f922f1522030ac801c9f27b8732f0e81d2e08.tar.lz
microformats-e81f922f1522030ac801c9f27b8732f0e81d2e08.tar.zst
microformats-e81f922f1522030ac801c9f27b8732f0e81d2e08.zip
Fix whitespace collapsing with multiple elements
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 5486898..9c9da10 100644
--- a/test/microformats/parser_expectations.clj
+++ b/test/microformats/parser_expectations.clj
@@ -188,6 +188,9 @@
 (expect {:items '({:type ("h-card") :properties {:name ("Example User")}}) :rels {}}
         (parse "<p class=\"h-card\">Example User</p>"))
 
+(expect {:items '({:type ("h-card") :properties {:name ("Example User")}}) :rels {}}
+        (parse "<p class=\"h-card\">Example<span> </span> User</p>"))
+
 (expect {:items '({:type ("h-card") :properties {:name ("Example User") :url ("http://example.com")}}) :rels {}}
         (parse "<a class=\"h-card\" href=\"http://example.com\">Example User</a>"))