Bug 131519 - Italic formatting lost with copy and paste
Summary: Italic formatting lost with copy and paste
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
Depends on:
Reported: 2020-03-24 05:48 UTC by VincentYu
Modified: 2020-03-24 10:53 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:

a line of text which is partially italic (9.34 KB, application/vnd.oasis.opendocument.text)
2020-03-24 05:49 UTC, VincentYu

Note You need to log in before you can comment on or make changes to this bug.
Description VincentYu 2020-03-24 05:48:04 UTC
Copy & paste a line of text with some italic text, the italic text becomes normal text at the destination

Steps to Reproduce:
1.open the supplied writer doc with 1 line of text containing italics
2.move cursor to eol and press enter several times to add a few new lines
3.copy & paste the 1st line to one of the new lines.

Actual Results:
all texts becomes normal text, no italics

Expected Results:
italic texts are preserved in the destination

Reproducible: Always

User Profile Reset: Yes

Additional Info:
Version: (x64)
Build ID: dd0751754f11728f69b42ee2af66670068624673
CPU threads: 2; OS: Windows 6.3; UI render: default; VCL: win; 
Locale: en-US (en_US); UI-Language: en-US
Calc: threaded
Comment 1 VincentYu 2020-03-24 05:49:23 UTC
Created attachment 158913 [details]
a line of text which is partially italic
Comment 2 Timur 2020-03-24 08:10:22 UTC
Interesting bug report. Could be a test question.
What probably happened is that you marked "Test1" italic and then typed "Test2" and then turned off italic for Test2.
But that didn't reset chars, it actually set direct formatting of normal i.e. not beiug italic.
So when you type enters, they carry direct formatting of being normal (so your paste of italic is reset to normal)...weird, ha. 

I will not take this as bug because it's a long know issue, already discussed, just that I can't find a bug now. So this is either rejected or a duplicate. 
Discussion was: if you set direct f. like italic and then remove italic, should text be cleared of direct f., because now is, as explained, direct formatted as normal without italic.
Comment 3 Timur 2020-03-24 08:17:40 UTC
Let me add that there's hardly a "proper" was to do this. 
Because when you removed italic from Test2, you might've said: 
1. I just want to reset - and this would be wrong, further enters bring what you didn't want - but you should have removed direct format, not again applied a new one.
2. I do not want any italic now - and this would be correct, further enters carry correct intention - so this all makes sense with some understanding.
Comment 4 VincentYu 2020-03-24 09:43:40 UTC
Isn't it normal to expect a COPY of something to be 100% identical to the source? Why are other formatting got carried over verbatim, like superscript/subscript/bold? 
BTW, this problem only happens sporadically, sometimes it happens sometimes it doesn't.
If what you said is true, then shouldn't italics in all copy/paste scenarios be reverted back to normal?