Skip to content

Conversation

haoqunjiang
Copy link
Member

@haoqunjiang haoqunjiang commented Apr 19, 2019

BREAKING CHANGE:
Detailed explanation: vuejs/vue#9208 (comment)

Take the following template as example:

<p>
  Welcome to <b>Vue.js</b> <i>world</i>.
  Have fun!
</p>

With preserveWhitespace: false, it was compiled as:

<p> Welcome to <b>Vue.js</b><i>world</i>. Have fun! </p>

With whitespace: 'condense', it is now compiled as:

<p> Welcome to <b>Vue.js</b> <i>world</i>. Have fun! </p>

Note the inline whitespace between tags is preserved.

Closes #1020

BREAKING CHANGE:
Detailed explanation: vuejs/vue#9208 (comment)

Take the following template as example:
```
<p>
  Welcome to <b>Vue.js</b> <i>world</i>.
  Have fun!
</p>
```

With `preserveWhitespace: false`, it was compiled as:
```
<p> Welcome to <b>Vue.js</b><i>world</i>. Have fun! </p>
```

With `whitespace: 'condense'`, it is now compiled as:
```
<p> Welcome to <b>Vue.js</b> <i>world</i>. Have fun! </p>
```

Note the **inline whitespace between tags** is preserved.
@haoqunjiang haoqunjiang mentioned this pull request Apr 22, 2019
19 tasks
@haoqunjiang haoqunjiang merged commit dc2b85c into vuejs:next-major Apr 22, 2019
haoqunjiang added a commit that referenced this pull request Apr 30, 2019
BREAKING CHANGE:
Detailed explanation: vuejs/vue#9208 (comment)

Take the following template as example:
```
<p>
  Welcome to <b>Vue.js</b> <i>world</i>.
  Have fun!
</p>
```

With `preserveWhitespace: false`, it was compiled as:
```
<p> Welcome to <b>Vue.js</b><i>world</i>. Have fun! </p>
```

With `whitespace: 'condense'`, it is now compiled as:
```
<p> Welcome to <b>Vue.js</b> <i>world</i>. Have fun! </p>
```

Note the **inline whitespace between tags** is preserved.

Closes #1020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant