Sublime Forum

Incorrect snippets padding on selection

#1

I’ve made a snippet to insert Blitz blocks in HTML:

[code]
$SELECTION

[/code]

It works ok when I’m just inserting new snippet, but when I select some text like an UL HTML element:

[code]



  • /li>

[/code] ST2 produces: [code]
  • /li>
[/code] 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.
0 Likes