Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
rozdwojeniejazni
Wanderer


Joined: 13 Aug 2011
Posts: 74

PostPosted: Sat Oct 01, 2011 6:35 pm   

[3.43 BUG] #CW + #SUB + line-wrapping
 
I noticed this bug long time ago, but until today I couldn't find the exact circumstances causing it. I wrote the instructions really clear so please, someone reproduce it as it's shown below and respond.

1. In empty and clean session (no need to connect to MUD) import these two triggers:
Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
  <trigger priority="30">
    <pattern>part of line</pattern>
    <value>#CW $bb0000</value>
  </trigger>
  <trigger priority="20">
    <pattern>This line will be substituted*.</pattern>
    <value>#SUB {Show this instead. None words should be colored in this line.}</value>
  </trigger>
</cmud>


2. Make sure the second show command below will be long enough to wrap in the window.
Code:
#SH Here a part of line is colored red.
#SH This line will be substituted. It must be long enough, otherwise the bug won't appear. It must be long enough, otherwise the bug won't appear. It must be long enough, otherwise the bug won't appear.

Paste it into the command line. - This is the wrong behavior.

3. You may now make the window wider or line shorter and enter #SHOWs again to see the correct behavior.



PS: This is how it looks:
Quote:
Here a part of line is colored red.
Show this instead. None words should be colored in this line.
Here a part of line is colored red.
Show this instead. None words should be colored in this line.

My config: winXPx86/win7x64, any resolution up to 1680x1050, cMUDPro.
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Sat Oct 01, 2011 6:45 pm   
 
Confirmed. If I had to guess, the root of the problem is with word wrap - this doesn't happen if you turn that off.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net