elllusion / zen-coding

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

sequential id generation problem when there are brackets in notepad++ zen-coding plug-in. #276

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Enter zen-coding code like "div#main>(span#item$[style='width: 100%; height: 
7px;']>span[style='bigFont'])*5" in notepad++
2.Press Ctrl+E

What is the expected output? What do you see instead?
[Expected]
======================
<div id="main">
    <span id="item1" style="width: 100%; height: 7px;"><span style="bigFont"></span></span>
    <span id="item2" style="width: 100%; height: 7px;"><span style="bigFont"></span></span>
    <span id="item3" style="width: 100%; height: 7px;"><span style="bigFont"></span></span>
    <span id="item4" style="width: 100%; height: 7px;"><span style="bigFont"></span></span>
    <span id="item5" style="width: 100%; height: 7px;"><span style="bigFont"></span></span>
</div>
----------------------

[Result]
======================
<div id="main">
    <span id="item1" style="width: 100%; height: 7px;"><span style="bigFont"></span></span>
    <span id="item1" style="width: 100%; height: 7px;"><span style="bigFont"></span></span>
    <span id="item1" style="width: 100%; height: 7px;"><span style="bigFont"></span></span>
    <span id="item1" style="width: 100%; height: 7px;"><span style="bigFont"></span></span>
    <span id="item1" style="width: 100%; height: 7px;"><span style="bigFont"></span></span>
</div>
----------------------

What version of the product are you using? On what operating system?
1.Zen-coding Notepad++ plug-in v0.7
2.Notepad++ v5.9.1
3.Windows 7

Please provide any additional information below.

Hi,

I only use Notepad++ on Windows, so I don't know if it's a specific problem of 
Notepad++ plugin or for all the other editors.

I cannot work out any way to avoid of using brackets in this situation, so I 
think this should be an issue.

If there are some other ways which can help me avoid of using brackets, please 
let me know.

Thank you.

-Quan

Original issue reported on code.google.com by yys...@gmail.com on 17 Jun 2011 at 6:39

GoogleCodeExporter commented 9 years ago
Yep, it’s a bug.

In your case, this expression will produce required result:

`#main>span#item$[style='width: 100%; height: 7px;']*5>span[style='bigFont']`

Original comment by serge....@gmail.com on 20 Jun 2011 at 8:51

GoogleCodeExporter commented 9 years ago

Original comment by serge....@gmail.com on 4 Jul 2012 at 8:35