Title: Bug with tags · Issue #26 · stringham/angular-template-formatter · GitHub
Open Graph Title: Bug with tags · Issue #26 · stringham/angular-template-formatter
X Title: Bug with tags · Issue #26 · stringham/angular-template-formatter
Description: If you have a tag in a
tag then every time you format the document it adds a new line inside the start of the
tag. This will keep adding new lines to the
tag endlessly. The formatter should ignore
tags as t...
Open Graph Description: If you have a tag in a
tag then every time you format the document it adds a new line inside the start of the
tag. This will keep adding new lines to the
tag endlessly. The...
X Description: If you have a <code> tag in a <pre> tag then every time you format the document it adds a new line inside the start of the <pre> tag. This will keep adding new lines to the <pr...
Opengraph URL: https://github.com/stringham/angular-template-formatter/issues/26
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug with \u003cpre\u003e\u003ccode\u003e tags","articleBody":"If you have a `\u003ccode\u003e` tag in a `\u003cpre\u003e` tag then every time you format the document it adds a new line inside the start of the `\u003cpre`\u003e tag. This will keep adding new lines to the `\u003cpre\u003e` tag endlessly.\r\n\r\nThe formatter should ignore `\u003cpre\u003e` tags as they preserve whitespace.\r\n\r\nExample:\r\n```\r\n\u003cpre\u003e\u003ccode\u003e{{ someProp }}\u003c/code\u003e\u003c/pre\u003e\r\n```\r\n\r\nWill turn into:\r\n```\r\n\u003cpre\u003e\r\n\r\n\r\n\u003ccode\u003e{{ someProp }}\u003c/code\u003e\u003c/pre\u003e\r\n```","author":{"url":"https://github.com/ryanknittel-fdx","@type":"Person","name":"ryanknittel-fdx"},"datePublished":"2022-07-11T18:24:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/26/angular-template-formatter/issues/26"}
| 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:da741db4-2bad-b69b-5b54-9ca080f88646 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8EC4:1DFBD7:ABD6DC:DDD7EE:69922B8B |
| html-safe-nonce | aa26f6d8acc67323cd331eb863522d428239c3aa81523874ae44f6ecc33a81b7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUM0OjFERkJENzpBQkQ2REM6REREN0VFOjY5OTIyQjhCIiwidmlzaXRvcl9pZCI6IjUyMDk3NTU4NzgyNDk2MDYwMjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | dfa85a1730c55c0c6d2144130ccaa1129dc3fb1e9508ac047bbaa1a212efcd43 |
| hovercard-subject-tag | issue:1301064780 |
| 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/stringham/angular-template-formatter/26/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c3d1e815ce0fdcb2500f2c7b79f6d6a05f7a380383200a49157843dde08ef8f7/stringham/angular-template-formatter/issues/26 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c3d1e815ce0fdcb2500f2c7b79f6d6a05f7a380383200a49157843dde08ef8f7/stringham/angular-template-formatter/issues/26 |
| og:image:alt | If you have a tag in a |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ryanknittel-fdx |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/stringham/angular-template-formatter git https://github.com/stringham/angular-template-formatter.git |
| octolytics-dimension-user_id | 1206952 |
| octolytics-dimension-user_login | stringham |
| octolytics-dimension-repository_id | 118013027 |
| octolytics-dimension-repository_nwo | stringham/angular-template-formatter |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 118013027 |
| octolytics-dimension-repository_network_root_nwo | stringham/angular-template-formatter |
| 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 | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width