Bug 159001 - Delete extra spaces when editing in Writer
Summary: Delete extra spaces when editing in Writer
Status: RESOLVED DUPLICATE of bug 149254
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.6.2 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks:
 
Reported: 2024-01-03 18:07 UTC by John Rethorst
Modified: 2024-01-15 11:10 UTC (History)
2 users (show)

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 John Rethorst 2024-01-03 18:07:08 UTC
Description:
With the text "one two three", when I double-click "two" and press delete, two spaces remain between "one" and "three". Many full-featured word processors, e.g. Microsoft Word, have a Smart Delete feature so that only one space is left after the deletion. 

Steps to Reproduce:
1. Select text to delete. 
2. Press delete. 
3. Note that two spaces remain where the text was. 

Actual Results:
Extra space must be deleted separately. 

Expected Results:
Extra space should be deleted along with the selected text. Microsoft Word and other programs do this. 


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.6.3.2 (X86_64) / LibreOffice Community
Build ID: 29d686fea9f6705b262d369fede658f824154cc0
CPU threads: 4; OS: Mac OS X 14.2.1; UI render: Skia/Raster; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 Dieter 2024-01-14 20:37:00 UTC
I confirm described behaviour with

Version: 24.2.0.1 (X86_64) / LibreOffice Community
Build ID: b4d45829793cddfe67b58a53f495528c75738d8a
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded

But not sure, if it should be changed. Current behaviour is user-friendly, if you want to type new text.

Perhaps inconsistent behaviour:
Drag and drop a selected word includes also preceding space, see bug 141738
Cut a selected word, cut also the preceding space (see bug 139631)
Pressing "delete" with a selected word doesn't delete leading space (this bug)

Best solution would be, that preceding space is only deleted, if you press delete or backspace, but i don't know, if this is feasible from a technical side

cc: Design-Team
Comment 2 Heiko Tietze 2024-01-15 11:10:46 UTC
This has been discussed recently.

*** This bug has been marked as a duplicate of bug 149254 ***