Bug 117273 - Pasting HTML with inline styles does not lead to character formatting in Impress/Draw
Summary: Pasting HTML with inline styles does not lead to character formatting in Impr...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
3.6.7.2 release
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 153342 (view as bug list)
Depends on:
Blocks: Paste
  Show dependency treegraph
 
Reported: 2018-04-27 08:11 UTC by jose.velez
Modified: 2023-03-27 10:57 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jose.velez 2018-04-27 08:11:58 UTC
Description:
If you copy a text from a web page which includes some character style (fonts, colors...) and you paste it in Writer, you get a text with similar style.

If you make the same experiment in Impress you get plain text in the best case. Neither using paste special you can get to copy the styles if they come from HTML.

If you copy from a code editor (like kate or notepad++), to retain code syntax highlight using HTML copy, you have the same problem.

Workaround: copy from anywhere and paste to Writer, then copy from Writer and paste in Impress.

Steps to Reproduce:
1. Using firefox go to this web: https://www.w3schools.com/html/html_styles.asp
2. Copy the lines: I am Red, I am Blue, I am Big.
3. Paste them in impress.
4. Paste them in writer.
5. Observe the difference.

Actual Results:  
The pasted text in Writer retain the style, but the text in Impress doesn't retain the style. Neither using paste special you can retain the style in Impress.

Expected Results:
A way to retain the style of the pasted text in Impress.


Reproducible: Always


User Profile Reset: No



Additional Info:
I'm using KDE.


User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0
Comment 1 Buovjaga 2018-05-23 14:53:05 UTC
Repro.

Arch Linux 64-bit
Version: 6.1.0.0.alpha1+
Build ID: 5956828c88501ef1366e60010b05053a8e1e642e
CPU threads: 8; OS: Linux 4.16; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on May 23rd 2018

Arch Linux 64-bit
Version 3.6.7.2 (Build ID: e183d5b)

Version: 6.1.0.0.alpha1+ (x64)
Build ID: 8fae8a6cd73b7262c3739bd4acc5c72b54934ff1
CPU threads: 4; OS: Windows 10.0; UI render: default; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-05-22_22:52:50
Locale: fi-FI (fi_FI); Calc: group
Comment 2 jose.velez 2019-04-09 21:04:45 UTC
Same problem if paste in a Text Box of writer.

The problem affects to the whole system. Paste with format does not work in Text Boxes.
Comment 3 jose.velez 2020-03-27 21:56:37 UTC
The bug still is present in 6.4.2.
Comment 4 Buovjaga 2020-03-28 06:16:34 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2022-03-29 03:59:25 UTC Comment hidden (obsolete)
Comment 6 jose.velez 2022-04-02 14:57:50 UTC
The problem continues in 7.3 releases.
Comment 7 Buovjaga 2023-03-27 10:57:33 UTC
*** Bug 153342 has been marked as a duplicate of this bug. ***