(fixed pitch) prints an extra space?

Why is (fixed pitch) printing an extra space? I’m displaying this:

(glyph at $Position)
	(if) (object at $Position into $Obj) (then)
		($Obj code $Code)
		(current ship $Ship)
		(if) ($Obj = $Ship) (then)
			(bold)
		(endif)
		$Code
		(roman)	(fixed pitch)
	(else)
		.
	(endif)

…and when it encounters (fixed pitch), it sticks in an extra space, as seen here:

...
Testing #range-to-near: 423 Passed!
Testing #range-to-far: 1728 Passed!
Testing #range-to-distant: 6079 Passed!
Testing #range-to-xy: 241 Passed!
Testing #short-range-scan:
     1 2 3 4 5 6 7 8 9 10
  1  . . . . . . . . . .   Earth Date: 051230 Mar 73
  2  . . . . . . . . . .   Alert Status: GREEN
  3  . q  . . . . . . . .   Quadrant: 103-37, Mirfak region
  4  . . . . . . . . . .   Position: 3-4 / 5-6
  5  . . . . . q  . . . .   Destination: not set
  6  . . . . e  . . . . .   Heading: 315
  7  . . . . . . . . . .   Warp Gradient: 4
  8  . . . . . . . . . .   Energy: 932, 4 crystals online
  9  . . . . . . . . . .   Torpedoes: 10, not armed
  10 . . . . . . . . . .   Shields: down, 100%

Passed!
123 tests passed successfully.

Those extra spaces screw up my formatting.

When I comment out the (fixed-pitch) after the (roman), I get the correct behaviour:

...
Testing #range-to-distant: 6079 Passed!
Testing #range-to-xy: 241 Passed!
Testing #short-range-scan:
     1 2 3 4 5 6 7 8 9 10
  1  . . . . . . . . . .   Earth Date: 051230 Mar 73
  2  . . . . . . . . . .   Alert Status: GREEN
  3  . q . . . . . . . .   Quadrant: 103-37, Mirfak region
  4  . . . . . . . . . .   Position: 3-4 / 5-6
  5  . . . . . q . . . .   Destination: not set
  6  . . . . e . . . . .   Heading: 315
  7  . . . . . . . . . .   Warp Gradient: 4
  8  . . . . . . . . . .   Energy: 932, 4 crystals online
  9  . . . . . . . . . .   Torpedoes: 10, not armed
  10 . . . . . . . . . .   Shields: down, 100%

Passed!
123 tests passed successfully.

…but I obviously can’t leave the rest of the display in proportional pitch. Is there something I’m doing wrong?

1 Like

Does using:

(roman) (no space) (fixed pitch)

work here?

1 Like

In fact, it does! You are a Glorious Hero of the People’s Revolution.

It makes sense, now that I think of it, but it’s counterintuitive that there would be space in between two directives that don’t print anything.

1 Like