Handle leading whitespace after newline split, fixes #1042