angular-cn/packages/compiler/src/ml_parser
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
..
ast.ts refactor(compiler): ensure compatibility with typescript strict flag (#30993) 2019-07-18 14:21:25 -07:00
html_parser.ts refactor(compiler): use `options` argument for parsers (#28055) 2019-02-12 20:58:27 -08:00
html_tags.ts fix(core): don't wrap `<tr>` and `<col>` elements into a required parent (#29219) 2019-03-14 03:07:01 -04:00
html_whitespaces.ts fix(compiler): do not remove whitespace wrapping i18n expansions (#31962) 2019-08-09 12:03:50 -07:00
icu_ast_expander.ts docs: fix spelling 2017-03-22 21:28:24 -07:00
interpolation_config.ts build: update npm dependencies (#19328) 2017-09-22 13:20:52 -07:00
lexer.ts feat(compiler): support skipping leading trivia in template source-maps (#30095) 2019-04-25 12:36:54 -07:00
parser.ts fix(core): don't wrap `<tr>` and `<col>` elements into a required parent (#29219) 2019-03-14 03:07:01 -04:00
tags.ts fix(core): don't wrap `<tr>` and `<col>` elements into a required parent (#29219) 2019-03-14 03:07:01 -04:00
xml_parser.ts refactor(compiler): use `options` argument for parsers (#28055) 2019-02-12 20:58:27 -08:00
xml_tags.ts build(bazel): Turning on strictPropertyInitialization for Angular. (#24572) 2018-06-25 07:57:13 -07:00