{"action":"opened","issue":{"url":"https://api.github.com/repos/ianstormtaylor/slate/issues/185","repository_url":"https://api.github.com/repos/ianstormtaylor/slate","labels_url":"https://api.github.com/repos/ianstormtaylor/slate/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/ianstormtaylor/slate/issues/185/comments","events_url":"https://api.github.com/repos/ianstormtaylor/slate/issues/185/events","html_url":"https://github.com/ianstormtaylor/slate/issues/185","id":167956118,"number":185,"title":"calling .wrapInline() twice causes breaking returns on both sides of selection","user":{"login":"tyler-johnson","id":310038,"avatar_url":"https://avatars.githubusercontent.com/u/310038?v=3","gravatar_id":"","url":"https://api.github.com/users/tyler-johnson","html_url":"https://github.com/tyler-johnson","followers_url":"https://api.github.com/users/tyler-johnson/followers","following_url":"https://api.github.com/users/tyler-johnson/following{/other_user}","gists_url":"https://api.github.com/users/tyler-johnson/gists{/gist_id}","starred_url":"https://api.github.com/users/tyler-johnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyler-johnson/subscriptions","organizations_url":"https://api.github.com/users/tyler-johnson/orgs","repos_url":"https://api.github.com/users/tyler-johnson/repos","events_url":"https://api.github.com/users/tyler-johnson/events{/privacy}","received_events_url":"https://api.github.com/users/tyler-johnson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-27T21:04:06Z","updated_at":"2016-07-27T21:04:06Z","closed_at":null,"body":"I have a simple transform like so:\r\n\r\n```js\r\nstate.transform()\r\n  .wrapInline(\"inner\")\r\n  .wrapInline(\"outer\")\r\n  .apply();\r\n```\r\n\r\nI was expecting output like this:\r\n\r\n```\r\n<div>\r\n  Before\r\n  <span class=\"outer\">\r\n    <span class=\"inner\">Text</span>\r\n  </span>\r\n  After\r\n</div>\r\n```\r\n\r\nHowever what I got looks like this:\r\n\r\n```\r\n<div>\r\n  Before\r\n  <span class=\"inner\"><br /></span>\r\n  <span class=\"outer\">\r\n    <span class=\"inner\">Text</span>\r\n  </span>\r\n  <span class=\"inner\"><br /></span>\r\n  After\r\n</div>\r\n```\r\n\r\nAm I doing something wrong here?"}}
{"actor":{"display_login":"tyler-johnson"}}