ColourNote issue with OmitFromOutput

Posted by Larkin on Sun 29 Aug 2010 11:33 AM — 5 posts, 21,198 views.

#0
I'm using 4.58, and I noticed that some of my ColourNote calls got jumbled up. I created a brand new world with one trigger and was able to reproduce the behavior successfully.

What seems to do it is a combination of "omit from output," ColourNote, and send to script (not after omit). Here's my test trigger:

<triggers>
  <trigger
   enabled="y"
   match="test 123"
   omit_from_output="y"
   send_to="12"
   sequence="100"
  >
  <send>ColourNote("blue", "silver", "One", "yellow", "", "Two", "red", "", "Three")</send>
  </trigger>
</triggers>


And, the printed output is "reeoThOneTw" with the colors placed as you would expect, so it's just the letters that are jumbled.

Hope this helps!
Australia Forum Administrator #1
Fixed in version 4.59 [Commit 99c6eea].

It was going backwards through the style runs, but adding up the temporary column count (to grab the text) forwards.
#2
Thanks!
USA #3
Crazy. ColourNote has been around since 3.23 and nobody noticed this?
Australia Forum Administrator #4
It's the new stuff about keeping the ColourNote during omit from output. It pushes the style runs into a list before omitting, and then gets them back. That part is recent (version 4.54).