Skip to content

Edit multiline text style to trim the white space #929

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 2, 2017

Conversation

paulmelero
Copy link
Contributor

If we change it form pre to pre-line we get a nicer trimmed text on each line without the need of modifiers.

Definition on both can be found in the spec as follows:

‘pre’
This value prevents user agents from collapsing sequences of white space. Segment breaks such as line feeds and carriage returns are preserved as forced line breaks. Lines only break at forced line breaks; content that does not fit within the block container overflows it.

‘pre-line’
Like ‘normal’, this value collapses consecutive spaces and allows wrapping, but preserves segment breaks in the source as forced line breaks.

Both have the same browser support.

If we change it form `pre` to `pre-line` we get a nicer trimmed text on each line without the need of modifiers.

Definition on both can be found in [the spec](https://www.w3.org/TR/css-text-3/#white-space-property) as follows:

```
‘pre’
This value prevents user agents from collapsing sequences of white space. Segment breaks such as line feeds and carriage returns are preserved as forced line breaks. Lines only break at forced line breaks; content that does not fit within the block container overflows it.

‘pre-line’
Like ‘normal’, this value collapses consecutive spaces and allows wrapping, but preserves segment breaks in the source as forced line breaks.
```

Both have the same browser support.
@chrisvfritz chrisvfritz merged commit 197a9e8 into vuejs:master Jun 2, 2017
kazupon pushed a commit to kazupon/vuejs.org that referenced this pull request Oct 1, 2017
If we change it form `pre` to `pre-line` we get a nicer trimmed text on each line without the need of modifiers.

Definition on both can be found in [the spec](https://www.w3.org/TR/css-text-3/#white-space-property) as follows:

```
‘pre’
This value prevents user agents from collapsing sequences of white space. Segment breaks such as line feeds and carriage returns are preserved as forced line breaks. Lines only break at forced line breaks; content that does not fit within the block container overflows it.

‘pre-line’
Like ‘normal’, this value collapses consecutive spaces and allows wrapping, but preserves segment breaks in the source as forced line breaks.
```

Both have the same browser support.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants