{"action":"created","issue":{"url":"https://api.github.com/repos/royriojas/esformatter-jsx/issues/72","repository_url":"https://api.github.com/repos/royriojas/esformatter-jsx","labels_url":"https://api.github.com/repos/royriojas/esformatter-jsx/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/royriojas/esformatter-jsx/issues/72/comments","events_url":"https://api.github.com/repos/royriojas/esformatter-jsx/issues/72/events","html_url":"https://github.com/royriojas/esformatter-jsx/issues/72","id":155868817,"number":72,"title":"Template or backtick strings keep being indented","user":{"login":"ckknight","id":66227,"avatar_url":"https://avatars.githubusercontent.com/u/66227?v=3","gravatar_id":"","url":"https://api.github.com/users/ckknight","html_url":"https://github.com/ckknight","followers_url":"https://api.github.com/users/ckknight/followers","following_url":"https://api.github.com/users/ckknight/following{/other_user}","gists_url":"https://api.github.com/users/ckknight/gists{/gist_id}","starred_url":"https://api.github.com/users/ckknight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckknight/subscriptions","organizations_url":"https://api.github.com/users/ckknight/orgs","repos_url":"https://api.github.com/users/ckknight/repos","events_url":"https://api.github.com/users/ckknight/events{/privacy}","received_events_url":"https://api.github.com/users/ckknight/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/royriojas/esformatter-jsx/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-20T01:18:38Z","updated_at":"2016-06-20T19:15:52Z","closed_at":"2016-05-23T10:05:20Z","body":"This is likely related to #53, but occurs regardless if `formatJSXExpressions` is true or false\r\n\r\nUsing esformatter 0.9.3 and esformatter-jsx 5.0.4\r\n\r\n.esformatter:\r\n```json\r\n{\r\n\t\"preset\": \"default\",\r\n\t\"plugins\": [\r\n\t\t\"esformatter-jsx\"\r\n\t]\r\n}\r\n```\r\n\r\nInitial input:\r\n```jsx\r\nfunction render(count) {\r\n    return (\r\n        <FormattedMessage\r\n            id=\"some.id\"\r\n            defaultMessage={`You have {count, plural,\r\n                =0 {no Items}\r\n                one {one Item}\r\n                other {{count} Items}\r\n            }`}\r\n            description=\"Description goes here\"\r\n            values={{ count }}\r\n        />\r\n    );\r\n}\r\n```\r\n\r\nFirst output:\r\n```jsx\r\nfunction render(count) {\r\n  return (\r\n    <FormattedMessage id=\"some.id\" defaultMessage={ `You have {count, plural,\r\n                                                                =0 {no Items}\r\n                                                                one {one Item}\r\n                                                                other {{count} Items}\r\n                                                            }` } description=\"Description goes here\" values={ { count } } />\r\n    );\r\n}\r\n```\r\n\r\nSecond output:\r\n```jsx\r\nfunction render(count) {\r\n  return (\r\n    <FormattedMessage id=\"some.id\" defaultMessage={ `You have {count, plural,\r\n                                                                                                                =0 {no Items}\r\n                                                                                                                one {one Item}\r\n                                                                                                                other {{count} Items}\r\n                                                                                                            }` } description=\"Description goes here\" values={ { count } } />\r\n    );\r\n}\r\n```\r\n\r\nThird output:\r\n```jsx\r\nfunction render(count) {\r\n  return (\r\n    <FormattedMessage id=\"some.id\" defaultMessage={ `You have {count, plural,\r\n                                                                                                                                                                =0 {no Items}\r\n                                                                                                                                                                one {one Item}\r\n                                                                                                                                                                other {{count} Items}\r\n                                                                                                                                                            }` } description=\"Description goes here\" values={ { count } } />\r\n    );\r\n}\r\n```\r\n\r\nAlso see #70 for a PR to verify reformatting"},"comment":{"url":"https://api.github.com/repos/royriojas/esformatter-jsx/issues/comments/227240804","html_url":"https://github.com/royriojas/esformatter-jsx/issues/72#issuecomment-227240804","issue_url":"https://api.github.com/repos/royriojas/esformatter-jsx/issues/72","id":227240804,"user":{"login":"ckknight","id":66227,"avatar_url":"https://avatars.githubusercontent.com/u/66227?v=3","gravatar_id":"","url":"https://api.github.com/users/ckknight","html_url":"https://github.com/ckknight","followers_url":"https://api.github.com/users/ckknight/followers","following_url":"https://api.github.com/users/ckknight/following{/other_user}","gists_url":"https://api.github.com/users/ckknight/gists{/gist_id}","starred_url":"https://api.github.com/users/ckknight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckknight/subscriptions","organizations_url":"https://api.github.com/users/ckknight/orgs","repos_url":"https://api.github.com/users/ckknight/repos","events_url":"https://api.github.com/users/ckknight/events{/privacy}","received_events_url":"https://api.github.com/users/ckknight/received_events","type":"User","site_admin":false},"created_at":"2016-06-20T19:15:52Z","updated_at":"2016-06-20T19:15:52Z","body":"@royriojas Your demo duplicates the backtick string in the inner backtick string.\r\n\r\nAlso, the indentation bug is present if you do something akin to \r\n\r\n```jsx\r\n<Comp prop={fn`\r\n  hello\r\n`}\r\n```"}}
{"actor":{"display_login":"ckknight"}}