Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

[Harlowe] Non collapsing spaces ?

$
0
0
I've programmed a rotating scrolling display:
(set: $message to "Caution!.......")(set: $mh to (font: "Courier New")+(hook: "message"))\
$mh[Message](live: .1s)[(set: $message to $message's (range: 2, length of $message) + $message's 1st)\
(replace: ?message)[(print: " "+$message+")")]]
It works fine when the $message contains no spaces. When it does, Harlowe (or HTML) does it's usual stuff: collapsing them, which leads to some quite unpleasant effects.
I was thinking of using some non-breaking spaces but " " obviously counts as 5 caracters for Harlowe, not one. So they are rotated to. And that's ugly.
What to do? I have no clue. Do you?

Viewing all articles
Browse latest Browse all 1844

Trending Articles