mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Similar to interpolation, we do not want to completely remove whitespace
nodes that are siblings of an expansion.
For example, the following template
```html
<div>
<strong>items left<strong> {count, plural, =1 {item} other {items}}
</div>
```
was being collapsed to
```html
<div><strong>items left<strong>{count, plural, =1 {item} other {items}}</div>
```
which results in the text looking like
```
items left4
```
instead it should be collapsed to
```html
<div><strong>items left<strong> {count, plural, =1 {item} other {items}}</div>
```
which results in the text looking like
```
items left 4
```
---
**Analysis of the code and manual testing has shown that this does not cause
the generated ids to change, so there is no breaking change here.**
PR Close #31962
|
||
|---|---|---|
| .. | ||
| util | ||
| ast_serializer_spec.ts | ||
| ast_spec_utils.ts | ||
| BUILD.bazel | ||
| html_parser_spec.ts | ||
| html_whitespaces_spec.ts | ||
| icu_ast_expander_spec.ts | ||
| lexer_spec.ts | ||