Is there some reason you can't just use the Unicode character U+00A0 (NO-BREAK SPACE
) for that trailing space? It should work in comments too. To type the actual character on Windows, you can use the key combination ALT+0160.
Here's how it looks: <a