Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2008-11-19 08:31:06

Pioden
Xinha Community Member
From: Bangor, Wales
Registered: 2008-06-06
Posts: 39
Website

Possible bug?

I'm posting this here 'cos I'm not sure if this is a bug or not! If I type " - " (space dash space) in Xinha my text automatically gets replaces with " ??? ", three question marks! Why? Is this deliberate? I've tried searching through the code but I can't find any reference to this behavious anywhere. Bug?

Offline

#2 2008-11-19 11:06:03

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Possible bug?

this seems to be a bug related to the plugin SmartReplace, but I can say little about it without some more information, especially which browser you are using

Offline

#3 2008-11-19 11:27:15

Pioden
Xinha Community Member
From: Bangor, Wales
Registered: 2008-06-06
Posts: 39
Website

Re: Possible bug?

Happens in FF3 and IE7. Checking out Smart Replace now ...

Offline

#4 2008-11-19 11:41:14

Pioden
Xinha Community Member
From: Bangor, Wales
Registered: 2008-06-06
Posts: 39
Website

Re: Possible bug?

Good call ray!

Lines 66 - 68 of smart-replace.js

if(_e==32){
return this.smartReplace(ev,2,/^\s-/," \ufffd\ufffd\ufffd",false);
}

Comment out the line and the strange behaviour stops!

OK so problem solved (I think) - but I'm still not sure why this was occurring. Was this a bug or is there some useful function for this code?

Offline

#5 2008-11-19 12:34:35

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Possible bug?

This is a obviously bug, thanks for spotting it. Instead of the broken characters the hyphen should be replaced by a dash. This seems to be a malicious effect of compressing the code for the release.

I have created a ticket on this topic http://trac.xinha.org/ticket/1329

Offline

Board footer

Powered by FluxBB