Adapt line numbers