Unfortunately inform is stripping all the excess spaces. I thought it might just be the output in the inform ide doing it, but alas by time the text makes it out of inform in the javascript virtual machine the spaces are gone. I’d settle for it not working in the IDE, but working in the browser, so long as it worked.
Does anyone know how I can make it stop stripping spaces?
If you’re using the Parchment that is included in Inform 7, it won’t preserve all white space. The updated one from github.com/curiousdannii/parchment should.
Thanks maga, that worked. The odd thing is when I originally copy-and-pasted non-breaking spaces into the source they didn’t work. I guess the compiler converted them to regular spaces. The text his hideous in the source -
Quixe already maintains correct whitespace in the output, by silently converting spaces to non-breaking spaces as necessary. You don’t need to alter the stylesheet.
You do need to set a monospace font, though.
This will work in Quixe as-is. It looks messy, but mostly because of the line-break substitutions, not the symbols. The code contains ordinary spaces, not nbsps.
To say br -- running on: (- new_line; -).
The Kitchen is a room. The description is "You see a sign:[fixed letter spacing][br] ├─┴┤ ├┬─┘ ├─┼┤ ├┬─┘[br] └┬┴┐ └─┴┐ ├─┴┤ └┴─┐[br] └┬┴┘ [variable letter spacing][br]Not bad."