# File lib/rubypants.rb, line 284 def educate_ellipses(str, prevent_breaks=false) str = educate(str, RubyPants.n_of(3, '.'), entity(:ellipsis), prevent_breaks) educate(str, /(?<!\.|\.[[:space:]])\.[[:space:]]\.[[:space:]]\.(?!\.|[[:space:]]\.)/, entity(:ellipsis), prevent_breaks) end