Issue 4951 - COPY PASTE of text adds spaces before and after
Summary: COPY PASTE of text adds spaces before and after
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.1 Beta2
Hardware: PC Windows 2000
: P4 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
: 15806 (view as issue list)
Depends on:
Reported: 2002-05-16 15:46 UTC by knackaerts
Modified: 2013-02-07 22:35 UTC (History)
2 users (show)

See Also:
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description knackaerts 2002-05-16 15:46:58 UTC
When you copy selected text, and paste it back in writer, a space it added at the beginning and the 
end of the selection.

 Seems not to be the case with multiple line selections. Adn when 
pasting after a space, no space is aaded at the beginning.

Comment 1 stefan.baltzer 2002-07-15 18:54:45 UTC
Reassigned to Éric.
Comment 2 eric.savary 2002-11-07 07:49:28 UTC
ES: this is a feature. One assumes that the user who copies a portion 
of text i.e. 1 word wants to insert it somwehre else as a single 
portion/word. So blanks are automatcally generated whwn needed.
Note this does not happen when pasting at a beginning of a paragraph 
or when copying a portion of word.

ES->CJ: one could add one more option like "Don't use intelligent 
pasting" ;-)
Comment 3 christian.jansen 2003-03-24 07:51:41 UTC
Reassiged to Bettina.
Comment 4 eric.savary 2003-06-20 15:13:04 UTC
*** Issue 15806 has been marked as a duplicate of this issue. ***
Comment 5 Rainer Bielefeld 2003-06-20 16:05:14 UTC
Pls. read and test in Issue 15806, there are much more details listed
than here.

In that issue you will also find an attachment with a testfile for
comfortable testing.

This behaviour can still be found in 1.1beta2, so changed.
I do not think that this has P3, so changed to P4

Concerning Additional Comments From Eric Savary 2002-11-06 23:49 PST:
I do not think that it's a real feature: Why does it only happen if
you copy from a list?

Comment 6 Rainer Bielefeld 2003-06-20 16:30:11 UTC
It might be a fine feature, but it ssems not to work equal in all OOo
versions. I see differences between my test results in issue 15806 and
a test with

Comment 7 Rainer Bielefeld 2003-07-07 16:53:35 UTC
I made some further tests with the testfile of issue 15806 and found
out for 644M11:

As far as I see no longer any differences between "copy from or to
lists" and "copy from or to normal text.

Things I think that they are not correct:
Differences between copy-paste of word "here" of 1. or 2. line:

Test 1
Mark "line" of first line with double click
cursor between 't' and 'e' of "Whatever"
Result: spaces before and after "here" inserted.

Copy - paste word "second" to somewhere at the end of the text

Test 2
Mark "line" of second line with double click
cursor between 't' and 'e' of "Whatever"
Result: _no_ spaces before and after "here" inserted.
What might cause the difference?

Unexpected, too:
When I try to copy and paste the first word of each line between 't'
and 'e' of "Whatever", _no_ spaces will be inserted.

Comment 8 ace_dent 2008-05-16 02:38:07 UTC Issue Tracker - Feedback Request.

The Issue you raised has the status 'New' pending further action, but has not
been updated within the last 4 years. Please consider re-testing with one of the
latest versions of OOo, as the problem(s) may have already been addressed.
Either use the recent stable version:
or consider trying the new OOo 3 BETA (still in testing):
Please report back the outcome so this Issue may be Closed or Progressed as
necessary - otherwise it may be Resolved as Invalid in the future. You may also
wish to search for (and note) any duplicates of this Issue that may have
advanced further by checking the Issue Tracker:
Many thanks,
Cleaning-up and Closing old Issues as part of:
~ The Grand Bug Squash, pre v3 ~
Comment 9 luctur 2008-07-26 08:28:36 UTC
In OOo 2.4.1 on Windows Vista Home Premium, both localized in Italian language, 
the copy and paste feature has too different behaviors that may disorient the 
end user:

a) while copying from two different saved documents, the copy and paste feature 
inserts no front space if the word is inserted at the beginning of a paragraph;

b) while copying from two different saved documents, the copy and paste feature 
inserts a front space even if the end user has already inserted a manual space, 
doubling in this way the spaces between words;

c) while copying from two different saved documents, the copy and paste feature 
inserts a front and back space when the copied word is inserted *inside* 
another word;

d) while copying from two new documents that *have not been already saved*, the 
copy and paste feature inserts *no* space at all. It simply pastes the word 
where the cursor is.

This is really confusing and should be rationalized.
Comment 10 luctur 2008-07-26 10:41:54 UTC
A note about point b) in my previous post.

The second space after a manually inserted one is automatically inserted only 
if the paragraph is "open", this is to say if there is no word or full stop 
period after the pasted word. This is a misbehavior, IMO, especially when the 
end user has chosen "Ignore double spaces" among OOo options.

Examples of OOo wrong actual behavior:

1) WORD <manually inserted space> <automatically inserted space> PASTED ITEM 
<*no* period or other word at the end of the sentence>

while, correctly, OOo does:

2) WORD <manually inserted space> <*no* aut. inserted space> PASTED ITEM 
3) WORD <manually inserted space> <*no* aut. inserted space> PASTED ITEM 
<automatically inserted space> WORD <period>
Comment 11 bettina.haberer 2010-05-21 14:59:17 UTC
To grep the issues easier via "requirements" I put the issues currently lying on
my owner to the owner "requirements".