angular-docs-cn/packages/compiler/test/i18n
Pete Bacon Darwin 0ddf0c4895 fix(compiler): do not remove whitespace wrapping i18n expansions (#31962)
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
2019-08-09 12:03:50 -07:00
..
serializers feat(compiler): add "original" placeholder value on extracted XMB (#25079) 2018-07-30 16:49:00 -07:00
digest_spec.ts build: remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
extractor_merger_spec.ts refactor(compiler): use `options` argument for parsers (#28055) 2019-02-12 20:58:27 -08:00
i18n_html_parser_spec.ts build: remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
i18n_parser_spec.ts fix(compiler): do not remove whitespace wrapping i18n expansions (#31962) 2019-08-09 12:03:50 -07:00
integration_common.ts build(bazel): Turning on strictPropertyInitialization for Angular. (#24572) 2018-06-25 07:57:13 -07:00
integration_xliff2_spec.ts fix(compiler): fix support for html-like text in translatable attributes (#23053) 2018-03-29 08:58:27 -07:00
integration_xliff_spec.ts fix(compiler): fix support for html-like text in translatable attributes (#23053) 2018-03-29 08:58:27 -07:00
integration_xmb_xtb_spec.ts feat(compiler): add "original" placeholder value on extracted XMB (#25079) 2018-07-30 16:49:00 -07:00
message_bundle_spec.ts build: remove `main()` from specs (#21053) 2017-12-22 13:10:51 -08:00
translation_bundle_spec.ts test(ivy): update //packages/compiler tests for Ivy (#27301) 2018-11-29 21:31:35 -08:00