Unexpected white space with Bisquixe

I’ve noticed some missing white space in my bisquixe web release. Here’s a short demo:

lab is a room.

include glulx entry points by emily short.
include simple multimedia effects for v10 by mathbrush.

release along with a "bisquixe" interpreter.

void is always "        ".

to decide which text is the amount of white space required for (T - a text):
	let N be 10 - (the number of characters in T);
	if void matches the regular expression "^\s{[N]}":
		decide on "[fixed letter spacing][text matching regular expression][roman type]";
	otherwise:
		decide on "[fixed letter spacing]   ";
		
table of words
text
"hat"
"apple"
"turnip"
"cat"
"aligator"

instead of jumping:
	let aught be a text;
	say "( ";
	repeat through the table of words:
		now aught is the amount of white space required for text entry;
		say "[fixed letter spacing][text entry] [number of characters in aught][aught]";
	say ")";
	say line break;

Both the IDE and a Quixe release look like this, which is what I am aiming for:

>jump
( hat 7       apple 5     turnip 4    cat 7       aligator 2  )

The bisquixe release looks like this:

>jump
( hat 7 apple 5 turnip 4 cat 7 aligator 2 )

(it’s possible that I’m just doing something wrong)

I don’t have a due date for a project coming up or anything, so just when/if anyone has time. Thanks!

Looks like it’s being sent to the browser as literal spaces in the HTML, and sequences of spaces, tabs, and newlines in HTML are (by default) collapsed to a single space. You can override this with the white-space-collapse: preserve; CSS property.

1 Like

That did it! Thank you.