Format the versions in a list.