Format comment at the buffer end