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

            Bug ID: 105352
           Summary: Pasting multiple paragraphs without direct formatting
                    into an empty formatted one, will result in the
                    formatting of the last paragraph
           Product: LibreOffice
           Version: Inherited From OOo
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: minor
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: tele...@surfxs.nl

Description:
This is a rebash of bug 105164. Pasting of unformatted text into an area with
direct formatting, will result in applying the direct formatting to the pasted
text. When pasting a single paragraph it's quite acceptable.

However, the behavior will be unexpected and counter-intuitive when pasting
multiple paragraphs, because only the last paragraph gets formatted.

There are lots of easy workarounds, but the behavior looks quite odd when
pasting multiple paragraphs.

Steps to Reproduce:
1. Copy text between the dashes into a new Writer document
----
ABC 


DEF
GHI
JKL
MNO
DEF
GHI
KLM
NOP
QRS
TUV
WXY
----
2. Note that everything is pasted without direct formatting (Font Color:
Automatic)
3. Select ABC (apply some direct formatting; bold/underline/Highlight/Font
Color)
4. Set the cursor after the 'C' and hit enter (creating a new paragraph; which
has the same formatting as ABC. Note: it can happen by accident).
5. Cut/paste or drag "DEF-WXY" into the paragraph created in step 3.
6. WXY will be formatted to the applied formatting of the paragraph below ABC.
The rest will be black without direct formatting (Font Color: Automatic)

As an alternative I have added test file. With two paragraphs with different
formatting.

Actual Results:  
WXY will be formatted to the applied formatting of the paragraph below ABC. The
rest will be black without direct formatting (and font color: Automatic)

Expected Results:
As steve -_-  already commented in bug 105164#c11: only adapting to the
formatting for the last row unexpected and counter-intuitive. Three possible
solutions:
1. Not the last but the first paragraph should be formatted (problem and source
are nearby)
2. All text dragged into a certain formatted paragraph should adapt to the
formatting
2. No formatting should be applied

Personally I prefer the last one, because it's quite common behavior in most
text editors. 
- MS Word
- Wordpad
- Mozilla Thunderbird
- Zotero
- Google Docs
- Mac Texteditor
- Pages
- Abiword


Reproducible: Always

User Profile Reset: No

Additional Info:
Found in
Version: 5.4.0.0.alpha0+
Build ID: 99eed82939999d9a9689788a4134dd05d5c20c5a
CPU Threads: 4; OS Version: Windows 6.19; UI Render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2017-01-14_23:37:40
Locale: nl-NL (nl_NL); Calc: CL

and in
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4


User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:45.0) Gecko/20100101
Firefox/45.0

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to