# Remove new lines when copy/pasting in Discover

**URL:** <https://discuss.elastic.co/t/remove-new-lines-when-copy-pasting-in-discover/354326>\
**Category:** Kibana\
**Created:** [February 28, 2024, 10:56am UTC](https://discuss.elastic.co/t/remove-new-lines-when-copy-pasting-in-discover/354326 "2024-02-28T10:56:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mch](https://avatars.discourse-cdn.com/v4/letter/m/898d66/32.png) [@mch](https://discuss.elastic.co/u/mch)\
**Post date:** [February 28, 2024, 10:56am UTC](https://discuss.elastic.co/t/remove-new-lines-when-copy-pasting-in-discover/354326/1 "2024-02-28T10:56:33Z")

</div>

Hello,

I coming back on this subject since the last topic was automatically [closed](https://discuss.elastic.co/t/copy-paste-from-kibana-without-row-and-column-information-2/334026). There is still issues when copy/pasting the Discover's output.

In the following example, there is 3 columns (@timestamp, host, report\_desc). When copying the first 3 lines (see screenshot attached) I have the following output (ELK is 8.12.2):

 ![copy_paste_elk_8.12.2](https://us1.discourse-cdn.com/elastic/original/3X/d/f/df1fddce008d2fd5c6ff21f4b7f4dd3249f74d2d.png)

```auto
2016-10-05 07:48:23.000
- @timestamp, column 3, row 1

samples
[evtx/powershell/600] provider 'WSMan' new state is 'Started', ps_host_name: 'ConsoleHost', cmd:''', cmd_path:'', script_name:'', host_application:''

2016-10-05 07:48:23.000
samples
[evtx/powershell/600] provider 'Function' new state is 'Started', ps_host_name: 'ConsoleHost', cmd:''', cmd_path:'', script_name:'', host_application:''

2016-10-05 07:48:23.000
samples
[evtx/powershell/600] provider 'Certificate' new state is 'Started', ps_host_name: 'ConsoleHost', cmd:''', cmd_path:'', script_name:'', host_application:''

```

While the expected output is:

```auto
2016-10-05 07:48:23.000 samples [evtx/powershell/600] provider 'WSMan' new state is 'Started', ps_host_name: 'ConsoleHost', cmd:''', cmd_path:'', script_name:'', host_application:''
2016-10-05 07:48:23.000 samples [evtx/powershell/600] provider 'Function' new state is 'Started', ps_host_name: 'ConsoleHost', cmd:''', cmd_path:'', script_name:'', host_application:''
2016-10-05 07:48:23.000 samples [evtx/powershell/600] provider 'Certificate' new state is 'Started', ps_host_name: 'ConsoleHost', cmd:''', cmd_path:'', script_name:'', host_application:''

```

We are currently working around this issue by turning on the legacy's doc\_table: `doc_table:legacy`.

Could it be possible to patch it ?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [February 28, 2024, 11:46am UTC](https://discuss.elastic.co/t/remove-new-lines-when-copy-pasting-in-discover/354326/2 "2024-02-28T11:46:10Z")

</div>

Hello,

You need to comment on the github issues linked in your previous post.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 27, 2024, 11:46am UTC](https://discuss.elastic.co/t/remove-new-lines-when-copy-pasting-in-discover/354326/3 "2024-03-27T11:46:19Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
