Simple solution: apply the new formatting code only to new comments, that is, comments written after the date the new formatting was supported.