Issue 30186 - Drag and drop text moving doesn't deal properly with punctuation
Summary: Drag and drop text moving doesn't deal properly with punctuation
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: ui (show other issues)
Version: OOo 1.1.1
Hardware: PC Linux, all
: P4 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-14 10:57 UTC by johnpettigrew
Modified: 2013-08-07 14:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description johnpettigrew 2004-06-14 10:57:46 UTC
OOo deals intelligently with spaces during cut/copy/paste and D&D of text in
most cases. However, if there is punctuation at the edge of the selection, it
fails. For example, if I select parenthetical text including the parentheses and
drag to a new location. OOo will not (as it normally would) insert spaces
before/after the insertion, nor will it remove excess spaces from the source
location (leaving a double space). This effect is also seen with other
punctuation marks (e.g. full stops, commas).

This behaviour actually closely mimics a defect in MS Word, at least as far as
parentheses are concerned, but it is easily fixable to work consistently with
all text. The default behaviour should be to handle spaces normally in such
cases (especially, to remove the excess spaces from the source location).

Similarly, if I drag a selection next to but *outside* parentheses, OOo fails to
insert spaces correctly to separate the insertion from the parenthesis. This is
slightly different - OOo should handle spaces differently depending on whether
the destination is within the parentheses (which will not require a space
between the insertion and parenthesis) or outside them (which will require a space).

Even if I select a word surrounded by parentheses (but not the parentheses
themselves), OOo fails to insert spaces correctly around the word at its
destination. This is presumably a failure to recognise that the selection is a
complete word (having non-whitespace characters at each side at its source),
even though it is selected with a double mouse click (so part of the code
recognises the word boundaries).
Comment 1 michael.ruess 2004-06-14 13:03:42 UTC
MRU->DVO: when copying&pasting text in brackets, there should also be inserted
an additional space character for seperating from the following expression.
Comment 2 johnpettigrew 2004-08-17 10:20:46 UTC
MRU:
Yes, you're right. I didn't spell that out, because I believed that the handling
of spaces on the side of the insertion not adjacent to parentheses would
continue to work correctly. It's only the text adjacent to punctuation marks
that fails.
Comment 3 Rob Weir 2013-07-30 02:21:42 UTC
Reset assignee on issues not touched by assignee in more than 2000 days.