Is there some reason yan’t you use just U+00A0 `NO-BREAK SPACE` for that trailing space? That should work in comments, too.