adds a rule to ignores newlines