Add better detection of continued lines