From 385ef0db111ad842be4817171f9a19276d312fb5 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 22 Sep 2014 20:36:26 +0100 Subject: Trim extra spaces from HTML content --- test/microformats/parser_expectations.clj | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') diff --git a/test/microformats/parser_expectations.clj b/test/microformats/parser_expectations.clj index 05cc052..93a21b0 100644 --- a/test/microformats/parser_expectations.clj +++ b/test/microformats/parser_expectations.clj @@ -16,6 +16,14 @@ (expect "Foo bar" (apply str (#'microformats.parser/node-to-html '("Foo " {:tag :strong, :attrs nil, :content ("bar")})))) +(expect "665 3rd St. Suite 207" + (->> "
+665 3rd St. +Suite 207 +
" + snippet :content + (#'microformats.parser/node-to-text))) + (expect {:name '("Name")} (parse-p (snippet "Name
"))) -- cgit 1.4.1