lib/awestruct/context_helper.rb in awestruct-0.2.1 vs lib/awestruct/context_helper.rb in awestruct-0.2.2

- old
+ new

@@ -32,10 +32,10 @@ end stack.inject(s) { |memo,tag| memo += "</#{tag}>" } end def summarize(text, numwords=20, ellipsis='...') - close_tags(text.split()[0, numwords].join(' ') + ellipsis) + close_tags(text.split(/ /)[0, numwords].join(' ') + ellipsis) end def fully_qualify_urls(base_url, text) doc = Hpricot( text )