Angular: avoid breaking inline interpolation closing tags (#20134)

Co-authored-by: fisker <lionkay@gmail.com>
This commit is contained in:
Максим Ивановandfisker authored and GitHub committed 2026-09-23 18:08:54 +08:00
1 parent 2a1fcd2999
commit de9ec361d3
5 files changed
+66

No files matched your search

@@ -0,0 +1,27 @@
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`issue-11981.html format 1`] = `
====================================options=====================================
parsers: ["angular"]
printWidth: 80 (default) |
=====================================input======================================
<div class="text">
Sorry, we couldn’t find an account for <b>{{ phoneInput }}</b>, let's create one:
</div>
<div class="text">
Sorry, we couldn’t find an account for <b>{{ phoneInput }}</b
>, let's create one:
</div>
=====================================output=====================================
<div class="text">
Sorry, we couldn’t find an account for <b>{{ phoneInput }}</b>, let's create
one:
</div>
<div class="text">
Sorry, we couldn’t find an account for <b>{{ phoneInput }}</b>, let's create
one:
</div>
================================================================================
`;
@@ -0,0 +1 @@
runFormatTest(import.meta, ["angular"]);
@@ -0,0 +1,7 @@
<div class="text">
Sorry, we couldn’t find an account for <b>{{ phoneInput }}</b>, let's create one:
</div>
<div class="text">
Sorry, we couldn’t find an account for <b>{{ phoneInput }}</b
>, let's create one:
</div>