Fix snippet formatting