Bug 140576 - In Writer: Triple-clicking to select a sentence in a paragraph and then dragging that sentence to a new location cause the space between sentences to be lost
Summary: In Writer: Triple-clicking to select a sentence in a paragraph and then dragg...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-21 05:02 UTC by ckoresko
Modified: 2021-08-08 03:46 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ckoresko 2021-02-21 05:02:25 UTC
Description:
Using the triple-click to select a sentence in a paragraph, and then moving that sentence to a new location in the paragraph (i.e., reordering the sentences) causes the spaces between the sentences to be lost.  This requires the user to manually edit the paragraph so that each sentence is followed by a space.

Steps to Reproduce:
1. Type the following in Writer: "First sentence. Second sentence. Third sentence."
2. Triple click "Second sentence." to select it.
3. Drag "Second sentence." to the end of the line (after "Third sentence.") or to the beginning (before "First sentence.")

Actual Results:
"First sentence.  Third sentence.Second sentence." or "Second sentence.First sentence.  Third sentence."  The space after "Second sentence." didn't get selected by the triple-click, so dragging didn't move it along with the sentence text.  This forces the user to manually add a missing space and delete an extra one, considerably slowing down the editing operation. 

Expected Results:
"First sentence. Third sentence. Second sentence." or "Second sentence. First sentence. Third sentence."


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Triple-click should select the space at the end of the sentence text, if one is present.  If no space is present at the end of the sentence, triple-click should automatically add one to the end of the sentence text in the clipboard.

In addition, it may be desirable that if the triple-clicked sentence is dropped in a location which is inside another sentence, and especially if it is dropped between characters in a word, that the drop target is automatically adjusted to be the location of the nearest beginning or end of a sentence.  This would make the drag-and-drop operation a lot less finicky, such that it would no longer be necessary to drop at precisely the correct character position to avoid having to go back and edit to fix the drag-and-drop result.

Version: 7.0.4.2
Build ID: 00(Build:2)
CPU threads: 2; OS: Linux 5.10; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 Екатерина 2021-08-07 16:48:00 UTC
When you triple click on a sentence, the sentence without spaces is highlighted. Therefore, when dragging and pasting an offer to a new location, only what was originally selected is inserted. This is not a bug