Summary: When you use @descformat on an object you're @parenting to, TinyMUX runs the space-compression algorithm.
After years of frustration on this, @Chime overhears my complaining and comes up with the solution that works:
&fn_roomcenter #5=[repeat( %%b, floor( fdiv( sub( %1, strlen( %0 )), 2 )))]%0
&fn_roomspace #5=repeat( %%b, %0 )
You're going to encounter this because you have a room parent that you want the game to look nice and pretty on, but sometimes you want to center things.
Thanks to her, now you can!
If you installed with SGP, your function object is #5. Throw the above two lines on it, @restart, and use those on rooms connected to a room parent and only those.
I do not know what would happen if you pass the description through more than one parent.
Explanation:
@descformat renders the code and passes it to the %0 for the special formatting. Apparently @parent is rendering it again. So if the space is escaped once, it will render on the second and come out properly.
Tab (%t
) still processes correctly, for some reason. It's just multiple spaces that get crunched down to one.