trim newlines in erb closing tags