# File lib/loofah/helpers.rb, line 25 def remove_extraneous_whitespace(string) string.gsub(/\n\s*\n\s*\n/,"\n\n") end