Clean up ruler format