Open andrewschultz opened 7 years ago
Up through Quixe 2.1.6, the web interpreter would transform extra spaces into /uA0 (non-breaking space). You can see this at http://eblong.com/zarf/glulx/quixe/quixe/play-remote.html?story=stories/Advent.ulx.js if you type "east. get all. i".
In the current bleeding-edge Quixe repo, I've stopped doing this but added "white-space: pre-wrap;" to the CSS for the story window. This gives the same result for all modern browsers, where "modern" means "IE8 or later so let's just not worry about it."
(Note that the status window has "white-space: pre;" -- not quite the same.)
The whitespace transformation I was using was somewhat fiddly, so I recommend the CSS solution.
I'm not sure how user friendly we want to be. The user can always just strip the tags. But when I run a gblorb/zblorb with fixed width text with multiple spaces, the HTML source shows the spaces but the web page doesn't. Is it worth converting 2 or more spaces in a row to 's?