Title: Format should indent JSX fragment children · Issue #20650 · microsoft/TypeScript · GitHub
Open Graph Title: Format should indent JSX fragment children · Issue #20650 · microsoft/TypeScript
X Title: Format should indent JSX fragment children · Issue #20650 · microsoft/TypeScript
Description: TypeScript Version: 2.7.0-dev.20171208 Code const frag = ( <>
text
> ) Run Format Expected behavior: Child is indented: const frag = ( <>text
> ) This is consistent with what we do for: const frag = (Open Graph Description: TypeScript Version: 2.7.0-dev.20171208 Code const frag = ( <>
text
> ) Run Format Expected behavior: Child is indented: const frag = ( <>text
> ) This is consistent with what we ...X Description: TypeScript Version: 2.7.0-dev.20171208 Code const frag = ( <> <p>text</p> </> ) Run Format Expected behavior: Child is indented: const frag = ( <> <p>text</p&...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/20650
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Format should indent JSX fragment children","articleBody":"\u003c!-- BUGS: Please use this template. -->\r\n\u003c!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript -->\r\n\u003c!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md -->\r\n\r\n\u003c!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->\r\n**TypeScript Version:** 2.7.0-dev.20171208\r\n\r\n**Code**\r\n\r\n```js\r\nconst frag = (\r\n \u003c>\r\n \u003cp>text\u003c/p>\r\n \u003c/>\r\n)\r\n```\r\n\r\nRun Format\r\n\r\n**Expected behavior:**\r\nChild is indented:\r\n\r\n```js\r\nconst frag = (\r\n \u003c>\r\n \u003cp>text\u003c/p>\r\n \u003c/>\r\n)\r\n```\r\n\r\nThis is consistent with what we do for:\r\n\r\n```js\r\nconst frag = (\r\n \u003cReact.Fragment>\r\n \u003cp>text\u003c/p>\r\n \u003c/React.Fragment>\r\n)\r\n```\r\n\r\n**Actual behavior:**\r\nNo change. Child will be de-indented if it was previously indented","author":{"url":"https://github.com/mjbvz","@type":"Person","name":"mjbvz"},"datePublished":"2017-12-12T19:18:58Z","url":"https://github.com/microsoft/TypeScript/issues/20650"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:355cae0e-8696-1932-d2fe-d390847a7b99 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A28C:3E4205:BD06BA:FE09D2:6B00F8E3 |
| html-safe-nonce | bae5973063ae8ded2bc5d0531fcdaa52a7df2d0a93036dd0376ef08aceabc65f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjhDOjNFNDIwNTpCRDA2QkE6RkUwOUQyOjZCMDBGOEUzIiwidmlzaXRvcl9pZCI6IjQ2OTI3OTI1NTIwMDc0NjUxODciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 51c152b23aa0807c2650bf39025fa209aa5c77cdd21ee765862e148cb62d9f03 |
| hovercard-subject-tag | issue:281505395 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/20650/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ba546cfa016d02a316a45be28591afd0f491f538215e1e5de8275aa8ec10b9f6/microsoft/TypeScript/issues/20650 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ba546cfa016d02a316a45be28591afd0f491f538215e1e5de8275aa8ec10b9f6/microsoft/TypeScript/issues/20650 |
| og:image:alt | TypeScript Version: 2.7.0-dev.20171208 Code const frag = ( <> text > ) Run Format Expected behavior: Child is indented: const frag = ( <>text > ) This is consistent with what we ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mjbvz |
| hostname | github.com |
| expected-hostname | github.com |
| None | e208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7dafd017fb7809a839c443dba08622af38e63c09 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width