fix #22572: clean up repeat text styles

This seems to do the job well for both new scores and imported 1.3 scores.