# New line remove when copying

**URL:** https://discuss.prosemirror.net/t/new-line-remove-when-copying/4560
**Category:** Uncategorized
**Created:** [April 19, 2022, 8:15am UTC](https://discuss.prosemirror.net/t/new-line-remove-when-copying/4560 "2022-04-19T08:15:45Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![hanulo](https://discuss.prosemirror.net/letter_avatar_proxy/v4/letter/h/4da419/32.png) [@hanulo](https://discuss.prosemirror.net/u/hanulo)
#### Post date: [April 19, 2022, 8:15am UTC](https://discuss.prosemirror.net/t/new-line-remove-when-copying/4560/1 "2022-04-19T08:15:46Z")

</div>

Copy the line breaks content and paste it somewhere else. line breaks disappear.  
Do you have a solution for this?

![스크린샷 2022-04-19 오후 5.09.06](https://discuss.prosemirror.net/uploads/secondsite/original/2X/2/2f4d4b591682edee9e919294da1ffe91e4c13e07.png)

---

<div class="post-metadata">

### Author: ![marijn](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/marijn/32/15_2.png) [@marijn](https://discuss.prosemirror.net/u/marijn)
#### Post date: [April 19, 2022, 8:41am UTC](https://discuss.prosemirror.net/t/new-line-remove-when-copying/4560/2 "2022-04-19T08:41:11Z")

</div>

White-space isn’t considered significant in non-code content, so the clipboard parser will normalize a sequence of whitespace to a single space.

---

<div class="post-metadata">

### Author: ![hanulo](https://discuss.prosemirror.net/letter_avatar_proxy/v4/letter/h/4da419/32.png) [@hanulo](https://discuss.prosemirror.net/u/hanulo)
#### Post date: [April 20, 2022, 6:45am UTC](https://discuss.prosemirror.net/t/new-line-remove-when-copying/4560/3 "2022-04-20T06:45:33Z")

</div>

Thanks for the reply.  
Is there any way to make sure the line breaks are preserved?

---

<div class="post-metadata">

### Author: ![marijn](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/marijn/32/15_2.png) [@marijn](https://discuss.prosemirror.net/u/marijn)
#### Post date: [April 20, 2022, 9:29am UTC](https://discuss.prosemirror.net/t/new-line-remove-when-copying/4560/4 "2022-04-20T09:29:06Z")

</div>

The [`whitespace`](https://prosemirror.net/docs/ref/#model.NodeSpec.whitespace) option on the node might help.
