Correct newlines when adding functions