Tweaked rawLines to get end of paragraph right