babel / babel-sublime-snippets

Next generation JavaScript and React snippets for Sublime
https://babeljs.io
262 stars 47 forks source link

how to use wrap in a component? #3

Closed chiefjester closed 9 years ago

chiefjester commented 9 years ago

I try to wrap this in a react component:

<div>hello world</div>

I get this:

<div>hello <Component>
<div>hello   world</div>
<div>hello </Component>

I'm pretty sure that's not the intended output right?

zertosh commented 9 years ago

Sorry about that - there was a bug where it didn't handle single line selections without leading whitespace. I published the fix v1.0.2 - it'll take about an hour for Package Control to pick up the update.

zertosh commented 9 years ago

Err. Correction, with and without leading whitespace, it's just that the brokeness looked different.

chiefjester commented 9 years ago

thanks that was fast! @zertosh