Bug 90942 - Editing: Cut and paste of bullets and numbering to the end of a paragraph causes last line to lose formatting (see comment 9)
Summary: Editing: Cut and paste of bullets and numbering to the end of a paragraph ca...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: x86-64 (AMD64) All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, regression
: 113314 (view as bug list)
Depends on:
Blocks: Paste Bullet-Number-Outline-Lists
  Show dependency treegraph
 
Reported: 2015-04-29 16:34 UTC by Gordo
Modified: 2023-05-07 03:16 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (8.71 KB, application/vnd.oasis.opendocument.text)
2020-07-30 11:52 UTC, Buovjaga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gordo 2015-04-29 16:34:39 UTC
1. New Text Document.
2. Type “This is a test:” and Enter.
3. Type “test1”, Enter, “test2”, Enter, “test3”, and Enter.
4. Type “end of test.” and Enter.
5. Select “test1”, “test2”, and “test3”.
6. Numbering on from toolbar.
7. Place cursor after “test3” and select everything up to the end of the first line.
8. Ctrl + x (cut).
9. Ctrl + v (paste).
Result:
The numbering for “test3” has disappeared.
Expected Result:
Numbering is preserved.

10. Undo the cut and paste.
11. Place cursor at the beginning of line 4 and select everything up to the end of the first line.
12. Ctrl + x (cut).
13. Ctrl + v (paste).
Result:
Numbering is preserved.

14. Undo the cut and paste.
15. Select the three lines of the numbered list.
16. Ctrl + x (cut).
17. Place cursor at the end of the first line and Ctrl + v (paste).
Result:
The first line takes on the formatting of the destination paragraph.  The last line “test3” loses its formatting and an empty numbered paragraph has been inserted.  I think this can be explained by the fact that after the cut there is an empty numbered paragraph.  On pasting, this is moved down and renumbered.

If you select just the numbered list and cut and paste it to the end of a different paragraph then the first line takes on the formatting of the destination paragraph and the last line loses its formatting, but no empty numbered paragraph is present as explained above.

Version: 4.4.2.2
Build ID: c4c7d32d0d49397cad38d62472b0bc8acff48dd6
Comment 1 Buovjaga 2015-04-29 19:03:09 UTC
Reproduced steps 1-9 on LibO 5.0
10-13: if line 4 is understood to be "end of test.", I get the same result.
Reproduced steps 14-17 more or less. In preparation, I set the first line as bold and test 3 as italic. test1 became bold and test3 became bold italic.

On 3.5.0, steps 14-17 were the only ones I could reproduce.
Adding a bibisect request for the other steps.

Win 7 Pro 64-bit Version: 5.0.0.0.alpha1+ (x64)
Build ID: f0edb677f09ad338e22ac3b5d91497b4479e0b3c
TinderBox: Win-x86_64@42, Branch:master, Time: 2015-04-27_01:54:20
Locale: fi_FI

Ubuntu 15.04 64-bit

LibreOffice 3.5.0rc3 
Build ID: 7e68ba2-a744ebf-1f241b7-c506db1-7d53735
Comment 2 Matthew Francis 2015-08-14 03:33:39 UTC
The first issue seems to have begun at source-hash-ce97851773a06103504972eb2771eecd7dd81e36 in bibisect 43all, i.e. the source range
 43c7830b03d141ae11d8617c0fdabefa32dd243c~1..ce97851773a06103504972eb2771eecd7dd81e36

Unfortunately this is a massive range, and also too old to readily build manually.


The only thing in the range that looks obviously somewhat relevant at a quick grep is

commit e9ec6d58b58739ce43ff563fd78c2326e11d1741
Author: Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>
Date:   Fri Jan 27 10:32:23 2012 +0100

    Revert "Removed list and numbering paragraph styles and related option page"
    
    This reverts commits 359d0fbd03a68d9131e8fb25e7dac9f19ddf6dcb,
    6a15a2898b7f822ddfba23553dd127e25af15fff and
    21352f88caba9dee73d5a87c8e3724d17ac6b428.
    
    This change is not mature enought: needs more work



Probably at this point, this bug would need investigating directly with reference to the current code.
Comment 3 Robinson Tryon (qubit) 2015-12-13 11:12:00 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2017-01-03 19:47:20 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2018-12-24 03:43:55 UTC Comment hidden (obsolete)
Comment 7 Timur 2020-07-29 21:53:13 UTC Comment hidden (obsolete)
Comment 8 Timur 2020-07-30 08:13:06 UTC
Please add sample document with all steps and screenshots showing selection and results.
Comment 9 Buovjaga 2020-07-30 11:52:37 UTC
Created attachment 163765 [details]
Example file

Now I can only repro steps 14-17

Version: 7.1.0.0.alpha0+
Build ID: d8270636a57e7dc68ede51308c380e2098f765d7
CPU threads: 4; OS: Linux 5.7; UI render: default; VCL: kf5
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 10 Justin L 2021-05-06 18:19:57 UTC
*** Bug 113314 has been marked as a duplicate of this bug. ***
Comment 11 Justin L 2021-05-06 18:25:21 UTC
I wrote in bug 113314 comment 15:
So the one problem I (almost) see is the last line when pasting into a non-empty paragraph. But the issue here is that you haven't actually copied the full last paragraph, because the selection stops before selecting the complete paragraph. (You would need to select to the beginning of the next paragraph to select absolutely everything, including the end marker.  As proof of that, try pasting in the middle of "end of test" and see what happens.) So this isn't really a bug either.

I think your troubles will reduce if you extend your selection to the beginning of the following paragraph. So I would term this as NOTABUG.
Comment 12 QA Administrators 2023-05-07 03:16:40 UTC
Dear Gordo,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug