Home Download Buy Blog Forum Support

Incorrect snippets padding on selection

Incorrect snippets padding on selection

Postby GreLI on Mon Jan 23, 2012 6:13 pm

I've made a snippet to insert Blitz blocks in HTML:
Code: Select all
<!-- BEGIN ${1:BLOCK} -->
   $SELECTION
<!-- END ${1:BLOCK} -->

It works ok when I'm just inserting new snippet, but when I select some text like an UL HTML element:
Code: Select all
<body>
   <div id="test">
      <ul>
         <li>/li>
      </ul>
   </div>
</body>

ST2 produces:
Code: Select all
<body>
   <div id="test">
      <!-- BEGIN BLOCK -->
         <ul>
               <li>/li>
            </ul>
      <!-- END BLOCK -->
   </div>
</body>

As you can see, inner lines get indentation, but all selected lines except the first got extra pad by the value of the first line padding which is totally wrong, I suppose.
GreLI
 
Posts: 7
Joined: Mon Jan 23, 2012 6:00 pm

Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 12 guests