preserve line numbers when reverting representation