Download it now!
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: 2019-02-20 18:26 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