format P operation on 1 line