NataBilya / zen-coding

Automatically exported from code.google.com/p/zen-coding
0 stars 0 forks source link

If there is a letter with a accent somewhere before in the page, it doesn't work well. #122

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Need to investigate this problem in Komodo and other editors.

If there is a letter with a accent somewhere before in the page, it doesn't 
work well.

Example 1 - It works:
---------------------
Downloads
div.content => <div class="content"></div>

**********************************************

Example 2 - With 1 accent :
-------------------------------
The letter "é" has an accent
div.content => d<iv class="content"></iv>

**********************************************

Example 3 - With 4 accents :
-------------------------------
The letters "éééé" have an accent
div.content => div.<content></content>

Original issue reported on code.google.com by serge....@gmail.com on 27 Feb 2010 at 10:37

GoogleCodeExporter commented 8 years ago
Thank you for reporting this problem here.

I wrote it on ActiveState website before seeing it was you the plugin creator ^^

I made some test, and the problem appear when a multibyte char is used. But not
always, and depending on linebreak.

For example :

Что делать div.content

will be changed to :

Что делать <div class="content">

But this :

Что делать
div.content

will be changed to :

Что делать
div.conte<nt></nt>

Original comment by blacky...@gmail.com on 27 Feb 2010 at 12:39

GoogleCodeExporter commented 8 years ago
I tried to work with files in encoding CP1251, this bug still exists, same 
behaviour 
as with UTF8.

Original comment by evgeny.p...@gmail.com on 2 Mar 2010 at 9:31

GoogleCodeExporter commented 8 years ago
I made some search, and the problem seems to come from 
"scimoz.getSelectionRange"

When typing (| is the carret position):

Telechargement
div.content|

scimoz.getSelectionRange returns 26, which is correct

But when typing :

Téléchargement
div.content|

scimoz.getSelectionRange returns 28 ...

Original comment by blacky...@gmail.com on 6 Mar 2010 at 7:42

GoogleCodeExporter commented 8 years ago
Fixed multibyte charcters bug in v0.6.1

Original comment by serge....@gmail.com on 26 Apr 2010 at 4:23

GoogleCodeExporter commented 8 years ago
Indeed it works now. Thank you very much!

Original comment by maxzag...@gmail.com on 27 Apr 2010 at 8:27

GoogleCodeExporter commented 8 years ago

Original comment by serge....@gmail.com on 3 May 2010 at 3:21