Fix line splitting logic.