Created attachment 130705 [details]
Pasting text (ctrl-v) in an paragraph which has a modified style changes the paragraph style.
- Open the attached example document
- Select a few chars in the indented text
- Copy the chars (ctrl-c)
- Paste (ctrl-v) in the middle of the indented paragraph
The style of the paragraph changes which should not happen. It is not obvious which attributes are changed.
The "list bullet style" is custom-made. I was not able to reproduce this with a "bare example". I have no idea what happens.
The bug only happens when pasting, not when typing.
Reproduced it. Taking
Further investigation shows that this is a problem with an old LO document opened in a new LO release:
The attached document was created with a older LO release which had not yet separated the list styles from the "Styles and Formatting" list of styles. For this document the list format was modified in the paragraph styles with the old LO release.
When editing the old document in the current LO release the changing of the paragraph "auto-assigns" the list style to the paragraph and this style is different from the old modified list style.
When opening the attached document in the current LO release you see that the list styles are in both lists.
I cannot judge what would be the correct behaviour. IMHO it would be correct to copy the "old" list styles to the new ones when opening an old document to be backward compatible. Or is the current behaviour intended?
[Unfortunately I cannot determine which old LO release was the creator of the document, the document was changed several times with different LO releases]
** Please read this message in its entirety before responding **
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 http://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://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa
Thank you for helping us make LibreOffice even better for everyone!
This bug is still present
Build ID: 1:6.4.1~rc2-0ubuntu0.18.04.1
CPU threads: 4; OS: Linux 5.3; UI render: default; VCL: kf5;
Locale: de-DE (en_US.UTF-8); UI-Language: en-US
When you paste into an empty paragraph the source paragraph style will be used. If the target is not empty, for example when you add a single space, the target style will be used. That applies only to paragraph styles, of course. The discussion runs on bug 98381 and bug 100018.
*** This bug has been marked as a duplicate of bug 98381 ***
Thanks for looking into this. But this is IMHO not the same as #98381 and not handled there.
Take the test document, select a few character _inside_ of the paragraph, press Ctrl-C and then inside the same paragraph press Ctrl-V and the style changes.
This is text from the same paragraph pasted inside the same paragraph.
This behavior can IMHO never be correct, it is not what a user expects.
True, this one was wrong. But a bug like this has been reported before with high probability and I found some relevant issues. No idea what exactly goes wrong here.
*** This bug has been marked as a duplicate of bug 77651 ***
Repro 7.2+ so not a duplicate of bug 77651.
*** Bug 136982 has been marked as a duplicate of this bug. ***
Hi Miklos. Since you fixed bug 101534, can you explain if this should be fixed or not per Comment 3.
Sounds like this is working as intended: paste doesn't overwrite styles in the target document, so if your original content was formatted with styles and the target has styles with the same names, then it's wanted behavior to change the formatting during paste.
IMHO this not expected behavior.
When selecting characters from a source paragraph and pasting these characters into a target paragraph, I do not expect that the format of the source paragraph is pasted and replaces the target paragraphs settings.
The _paragraph_ style should not at all be attached to selected characters from a paragraph.
I would expect that pasting transfers the character style of the pasted characters but not the paragraph styles.
But if the paragraph is empty with Default PS, isn't it a convenience feature to keep the source style? Pretty easy to paste without styles anyway.
(In reply to Heiko Tietze from comment #14)
> But if the paragraph is empty with Default PS, isn't it a convenience
> feature to keep the source style? Pretty easy to paste without styles anyway.
This may be convenient but the usability costs are IMHO too high. Copying characters from a paragraph to another should not change the targets paragraphs style.
Side node on copying paragraph styles: Old MS word (sorry for referencing this) had a notion of a paragraph style char at the end of each paragraph (a mirrored P). Copying this special charactr (with or without preceding characters) copied the paragraph style. This is IHMO a good solution.
But please look at the original bug report: The bug is that copying characters from a paragraph in an existing document in the _same_ paragraph in the _same_ document changes the style of this paragraph - I cannot imagine any explanation that this can be correct.
I respectfully disagree. Given your text consists of <heading><text> and now you want to copy/paste the first heading. But since the paragraph style after text is text again you always have to format the headings after copy/paste. That's definitely not wanted. In my opinion we have a pretty good implementation.
(In reply to Ulrich Gemkow from comment #15)
> Copying this special character ... copied the paragraph style.
We do it the other way around and you paste spacial > only text per ctrl+shift+insert. That's what I meant with "easy to paste without styles".
(In reply to Heiko Tietze from comment #16)
> (In reply to Ulrich Gemkow from comment #15)
> > Copying this special character ... copied the paragraph style.
> We do it the other way around and you paste spacial > only text per
> ctrl+shift+insert. That's what I meant with "easy to paste without styles".
I understand, thanks (maybe you mean ctrl+shift+alt+V, "Paste unformatted text"). But this also removes the character style from the pasted text. So I have no way to paste text with the characters style retained but not the paragraph style.
I see the different view: IMHO selecting characters and pasting them should paste what I selected (the characters and their style) and not more (not the paragraph style).
Thanks again for looking into this.