You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to prettier#16788
Modify Prettier to format Angular HTML without breaking the closing `</a>` tag onto a new line.
* Update `src/language-html/print/children.js` to handle inline elements like `a` tags and keep them on the same line.
* Adjust `src/language-html/print/element.js` to ensure inline elements are not broken onto new lines.
* Update `tests/integration/__tests__/format.js` to add tests verifying the new behavior for inline elements like `a` tags.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/prettier/prettier/issues/16788?shareId=XXXX-XXXX-XXXX-XXXX).
How can I get Prettier to format Angular HTML without breaking the closing
</a>
tag onto a new line?The current formatting output:
https://stackblitz.com/edit/stackblitz-starters-g4dyrm
Example code:
The text was updated successfully, but these errors were encountered: