https://bugs.documentfoundation.org/show_bug.cgi?id=167943

            Bug ID: 167943
           Summary: Pasting para with local formatting is affected by
                    format of previous paragraph
           Product: LibreOffice
           Version: 26.2.0.0 alpha0+ master
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
If a paragraph is copy-pasted, the formatting is changed (i.e. not exactly
reproduced) in the destination depending on the format of the existing
paragraph where the content is pasted into.

In particular, copied content can not be reliably pasted a second time after
pressing "return" the first time (to start another paragraph) because the
previously-pasted paragraph has a "Next paragraph" style which somehow modifies
the format of the paste content.

This might be just a documentation issue (i.e. may or may not be code
misbehavior).  However it seems counter-intuitive to me.   When content is
pasted, are the original styles copied and used, or is all the formatting
converted into local override formatting (anonymous styles)?

The docs on copy/paste are silent about this.  To my eyes this implies that
copy-paste should make the pasted content use all the same para and char styles
that the original uses (copying the needed styles to the new document if
pasting into another document).

https://help.libreoffice.org/latest/en-US/text/swriter/guide/dragdroptext.html

Please open the attached demo document, select ALL and paste into the new
document.  Press RETURN to start a new paragraph, then paste again.  Every
other copy is corrupted.

Steps to Reproduce:
1. Open attached "psdemo.odt".  View->Formatting Marks checked.
2. File->New->Text Document (reposition the new window so you can see both)
3. Click in the original document.  Control-A to select all.
4. Click in the new, empty doc.  Control-V to paste
5. Press RETURN (creates a new paragraph)
6. Control-V to paste

Actual Results:
The second paste does not reproduce the formatting correctly

Expected Results:
(I was assuming that pasting an entire paragraph would insert a new paragraph
with exactly the same formatting)


Reproducible: Always


User Profile Reset: No

Additional Info:
If this is expected behavior, it would be helpful to explain in the docs what
is happening in the docs e.g. at
https://help.libreoffice.org/latest/en-US/text/swriter/guide/dragdroptext.html

It should specifically say how to paste a paragraph (or multiple paras) into an
arbitrary location and get exactly the same formatting as the original
regardless of how surrounding paragraphs are formatted.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to