Bug 69487 - EDITING: Extraneous New Line When Pasting FROM Calc into Other Programs
Summary: EDITING: Extraneous New Line When Pasting FROM Calc into Other Programs
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: Other All
: low trivial
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks: Cut-Copy
  Show dependency treegraph
 
Reported: 2013-09-17 19:22 UTC by Zoffix Znet
Modified: 2023-02-21 03:22 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
test file to use when reproducing the bug. (7.37 KB, application/vnd.oasis.opendocument.spreadsheet)
2013-09-17 19:22 UTC, Zoffix Znet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zoffix Znet 2013-09-17 19:22:47 UTC
Created attachment 86009 [details]
test file to use when reproducing the bug.

Problem description: when copy/pasting data from Calc into other apps (like an HTML form using Firefox), a new line is added to the end. This is thoroughly annoying when you're copying single cells into HTML forms.

Steps to reproduce:
1. Open attached file test.ods
2. Click on cell A:1
3. Press CTRL+C to copy the word "test"
4. Go to another application, like an editor or an HTML form in a browser
5. Press CTRL+V to paste

Current behavior:
Word "test" PLUS a new line are pasted

Expected behavior:
Only word "test" pasted.
Operating System: Ubuntu
Version: Inherited From OOo
Comment 1 Zoffix Znet 2013-09-18 01:46:32 UTC
In case anyone finds this useful:
A workaround for when copy/pasting a single cell is click on the cell, press F2, CTRL+a, CTRL+c, ESC. This won't solve the problem when copying more than one cell. What I've done is I added a keyboard shortcut on my system to run xvkbd to press that key sequence. The full command is: xvkbd -xsendevent -text "\[F2]\Ca\Cc\D1\e"
Comment 2 tommy27 2013-09-22 11:48:03 UTC
when you say a new line, you mean that the cursor is one line below the word "test" while you want to have it at the end of the word on the same line, right?

if it this what you describe, it's like that in any LibO version and in AOO 4.0.0 as well (tested under Win7 64bit).
Comment 3 Zoffix Znet 2013-09-22 12:48:58 UTC
tommy27, yes, that is correct.

When I'm copying a single cell, or a couple of cells from the same row, my expectation is that I'll get a single line of text, without a new line at the end.

I pasted from the test spreadsheet into a perl script to show the characters, and it shows there's a "\n" newline character at the end:

zoffix@ZofMain:~$ perl -MData::Dumper -wle 'my $x = <STDIN>; $Data::Dumper::Useqq=1; print Dumper $x;'
test
$VAR1 = "test\n";


This is on Bodhi Linux 2.0.0 (based on Ubuntu 12.04), with LibreOffice Version 3.6.3.2 (Build ID: 58f22d5)
Comment 4 tommy27 2013-09-22 12:58:24 UTC
Ok. Status set to NEW and platform to ALL (confirmed under Linux and Windows).
Comment 5 QA Administrators 2015-04-01 14:39:59 UTC Comment hidden (obsolete)
Comment 6 Buovjaga 2015-04-19 14:02:40 UTC
Reproduced.

Win 7 Pro 64-bit Version: 5.0.0.0.alpha0+ (x64)
Build ID: 211c12b9c64facd1c12f637a5229bd6a6feb032a
TinderBox: Win-x86_64@42, Branch:master, Time: 2015-04-18_01:51:17
Locale: fi_FI
Comment 7 QA Administrators 2016-09-20 09:31:55 UTC Comment hidden (obsolete)
Comment 8 Roman Kuznetsov 2019-02-20 18:26:53 UTC
repro in

Version: 6.3.0.0.alpha0+
Build ID: b45289e48e0f354b9996e2846dd041db4a9947ce
CPU threads: 4; OS: Linux 4.18; UI render: default; VCL: kde5; 
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2019-02-08_12:51:03
Locale: ru-RU (ru_RU.UTF-8); UI-Language: en-US
Calc: threaded

But I'm not sure it's a bug
Comment 9 QA Administrators 2021-02-20 04:05:51 UTC Comment hidden (obsolete)
Comment 10 QA Administrators 2023-02-21 03:22:08 UTC
Dear Zoffix Znet,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug