Issue 119060 - Copying cells to clipboard always adds a newline at the end
Summary: Copying cells to clipboard always adds a newline at the end
Status: CONFIRMED
Alias: None
Product: Calc
Classification: Application
Component: editing (show other issues)
Version: 3.4.0 Beta (OOo)
Hardware: PC Windows 7
: P3 Normal with 7 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: needmoreinfo
Depends on:
Blocks:
 
Reported: 2012-03-14 00:59 UTC by Ben
Modified: 2019-12-04 21:02 UTC (History)
9 users (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: 4.1.6
Developer Difficulty: ---


Attachments
Patch to reintroduce the statement to avoid last newline (463 bytes, patch)
2014-02-02 15:52 UTC, hanya
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description Ben 2012-03-14 00:59:48 UTC
The process of copying a cell (or cells) within a Calc spreadsheet yields a superfluous newline at the end of the copied content.

This behavior is undesirable, especially when pasting into other applications.

The following forum thread describes the issue in more detail:

http://user.services.openoffice.org/en/forum/viewtopic.php?f=9&t=33927

The rationale as to why this occurs when MULTIPLE cells are copied makes sense (the cursor is forced down to the next row after pasting -- usually convenient), but there seems to be no reason for this behavior when copying ONE cell only.
Comment 1 binguo 2012-09-14 05:58:33 UTC
Verified on Aoo_Trunk_20120912.1800, unfortunately, I did not repro this bug, so could you please follow the steps on latest build on your side to see if it still occurs? thank you.
Comment 2 4340180 2012-10-15 21:33:14 UTC
install default OOo.
tryed version 3.4.1, 3.3.0 and latest snapshot r1372282.

open new calc document,
select cell A1, enter some text,
select this cell, press Ctrl-C,
going to another program, notepad for example,
press ctrl-V and
get this text and newline(CR)


sorry for bad english
Comment 3 Anu K 2012-12-24 07:08:09 UTC
There is a new line character in notepad(CR) after pasting the cell content from OO Calc 3.4.1.
Comment 4 hanya 2014-02-02 15:52:16 UTC
Created attachment 82474 [details]
Patch to reintroduce the statement to avoid last newline

The line that avoid last new line to be added is commented in the code. 
I do not know why the line is commented... Maybe related to the other bug?
Comment 5 AA 2019-03-26 17:07:30 UTC
Just wanted to mention that in LibreOffice Calc 6.2.0.3 on OS X in March 2019 still exhibits this behavior: if you select a *single* cell, copy it, and paste it anywhere, it will have a superfluous newline at the end, despite there being no such character in the original data.

This causes particular issues with inter-operability with Google Sheets, which inserts a literal newline character into a cell that is pasted in such a way, rather than interpreting the newline as meaning "move to next cell."
Comment 6 Cyryl 2019-04-12 08:29:24 UTC
Yes. This is STILL an issue in both OpenOffice as well as LibreOffice.

I frequently reformat text from spreadsheets in a text editor and this is driving me NUTS.

I'm not clear if this is a bug or an intended feature but I can not find any settings that negate this annoying problem. I personally would label this as a bug.

Why anyone would want an extra line inserted after a paste is beyond me.

Please FIX this?
Comment 7 Cyryl 2019-04-12 08:35:10 UTC
OO416m1(Build:9790)  -  Rev. 1844436
2018-10-22 14:11:36 (Mon, 22 Oct 2018) - Darwin x86_64

macOS Mojave v10.14.4

uname -a
--------------
Darwin 18.5.0 Darwin Kernel Version 18.5.0: Mon Mar 11 20:40:32 PDT 2019; root:xnu-4903.251.3~3/RELEASE_X86_64 x86_64
Comment 8 Cyryl 2019-04-27 12:03:03 UTC
Has anyone looked at this yet? This is still an issue.
Comment 9 Keith N. McKenna 2019-04-27 13:52:35 UTC
Set latest confirmation to 4.1.6 per Comment 7 and Issue type as Patch per Comment 4.
Comment 10 Cyryl 2019-10-25 18:01:02 UTC
LibreOffice 6.2.7.1
MacOSX 10.14.6

STILL an issue. Still no options to disable the insertion of this rogue carriage return. STILL extremely inconvenient and annoying.

WHY is this such a challenge to fix this bug?
Comment 11 Matthias Seidel 2019-10-25 18:02:50 UTC
(In reply to Cyryl from comment #10)
> LibreOffice 6.2.7.1
> MacOSX 10.14.6
> 
> STILL an issue. Still no options to disable the insertion of this rogue
> carriage return. STILL extremely inconvenient and annoying.
> 
> WHY is this such a challenge to fix this bug?

You should report that to LibreOffice, don't you? ;-)
Comment 12 Cyryl 2019-12-04 20:59:33 UTC
(In reply to Matthias Seidel from comment #11)
> (In reply to Cyryl from comment #10)
> > LibreOffice 6.2.7.1
> > MacOSX 10.14.6
> > 
> > STILL an issue. Still no options to disable the insertion of this rogue
> > carriage return. STILL extremely inconvenient and annoying.
> > 
> > WHY is this such a challenge to fix this bug?
> 
> You should report that to LibreOffice, don't you? ;-)

The general understanding is that LibreOffice is cut from the same thread as OpenOffice - which is a property of Apache.

We're at apache.org.

Soo... I am?
Comment 13 Matthias Seidel 2019-12-04 21:02:22 UTC
(In reply to Cyryl from comment #12)
> (In reply to Matthias Seidel from comment #11)
> > (In reply to Cyryl from comment #10)
> > > LibreOffice 6.2.7.1
> > > MacOSX 10.14.6
> > > 
> > > STILL an issue. Still no options to disable the insertion of this rogue
> > > carriage return. STILL extremely inconvenient and annoying.
> > > 
> > > WHY is this such a challenge to fix this bug?
> > 
> > You should report that to LibreOffice, don't you? ;-)
> 
> The general understanding is that LibreOffice is cut from the same thread as
> OpenOffice - which is a property of Apache.
> 
> We're at apache.org.
> 
> Soo... I am?

You are at Apache OpenOffice.

Fine if you want to test it with AOO!
But this is not the right place for reporting for LibreOffice.