{"action":"created","issue":{"url":"https://api.github.com/repos/haml/html2haml/issues/46","labels_url":"https://api.github.com/repos/haml/html2haml/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/haml/html2haml/issues/46/comments","events_url":"https://api.github.com/repos/haml/html2haml/issues/46/events","html_url":"https://github.com/haml/html2haml/issues/46","id":38026993,"number":46,"title":"Loss of indentation for html to haml.","user":{"login":"jaunkst","id":982066,"avatar_url":"https://avatars.githubusercontent.com/u/982066?v=3","gravatar_id":"","url":"https://api.github.com/users/jaunkst","html_url":"https://github.com/jaunkst","followers_url":"https://api.github.com/users/jaunkst/followers","following_url":"https://api.github.com/users/jaunkst/following{/other_user}","gists_url":"https://api.github.com/users/jaunkst/gists{/gist_id}","starred_url":"https://api.github.com/users/jaunkst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaunkst/subscriptions","organizations_url":"https://api.github.com/users/jaunkst/orgs","repos_url":"https://api.github.com/users/jaunkst/repos","events_url":"https://api.github.com/users/jaunkst/events{/privacy}","received_events_url":"https://api.github.com/users/jaunkst/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-07-16T21:29:31Z","updated_at":"2015-01-19T20:43:15Z","closed_at":"2015-01-19T20:43:15Z","body":"A href isn't indenting content when converting to haml from html unless its plain text?\r\nUsing 2 spaces for tabulation. Am i missing an option or something?\r\n\r\n```haml\r\n          %li{\"ng-show\" => \"page.controller\"}\r\n            %a{:role => \"tab\", \"ui-sref\" => \"controllers.edit(page.controller)\"}\r\n              .label.label-warning C\r\n              {{page.controller.name}}\r\n```\r\n\r\nto html\r\n```ruby \r\nHaml::Engine.new(haml)\r\n```\r\n```html\r\n          <li ng-show='page.controller'>\r\n            <a role='tab' ui-sref='controllers.edit(page.controller)'>\r\n              <div class='label label-warning'>C</div>\r\n              {{page.controller.name}}\r\n            </a>\r\n          </li>\r\n```\r\n\r\nback to haml\r\n```ruby\r\nHaml::HTML.new(html).render\r\n```\r\n```haml\r\n          %li{\"ng-show\" => \"page.controller\"}\r\n            %a{:role => \"tab\", \"ui-sref\" => \"controllers.edit(page.controller)\"}\r\n            .label.label-warning C\r\n            {{page.controller.name}}\r\n```\r\n\r\nIndentation for the .label and the mustache is lost.\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/haml/html2haml/issues/comments/70557306","html_url":"https://github.com/haml/html2haml/issues/46#issuecomment-70557306","issue_url":"https://api.github.com/repos/haml/html2haml/issues/46","id":70557306,"user":{"login":"snatchev","id":3312,"avatar_url":"https://avatars.githubusercontent.com/u/3312?v=3","gravatar_id":"","url":"https://api.github.com/users/snatchev","html_url":"https://github.com/snatchev","followers_url":"https://api.github.com/users/snatchev/followers","following_url":"https://api.github.com/users/snatchev/following{/other_user}","gists_url":"https://api.github.com/users/snatchev/gists{/gist_id}","starred_url":"https://api.github.com/users/snatchev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snatchev/subscriptions","organizations_url":"https://api.github.com/users/snatchev/orgs","repos_url":"https://api.github.com/users/snatchev/repos","events_url":"https://api.github.com/users/snatchev/events{/privacy}","received_events_url":"https://api.github.com/users/snatchev/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T20:43:15Z","updated_at":"2015-01-19T20:43:15Z","body":"html2haml 2.0.0 is out, closing this issue."}}