Cleanup editor format