Bug 153342 - Copying-and-pasting HTML text with an inline style into LibreOffice Impress will show copy text, not formatting
Summary: Copying-and-pasting HTML text with an inline style into LibreOffice Impress w...
Status: RESOLVED DUPLICATE of bug 117273
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
7.4.4.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-03 07:23 UTC by Fabio Pesari
Modified: 2023-03-27 10:57 UTC (History)
1 user (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 Fabio Pesari 2023-02-03 07:23:01 UTC
Description:
Hello,

copying-and-pasting HTML text with an inline style into LibreOffice Impress will only show text, not formatting. Doing the same in LibreOffice Writer also shows the formatting.

Steps to Reproduce:
1. Create a blank HTML file with this text:

<!DOCTYPE html>
<html lang="">
  <head>
    <meta charset="utf-8">
    <title>Color test</title>
  </head>
  <body>
    <p style="color: rgb(255, 0, 0)">1) This text is pasted with color</p>
    <p style="font-size: 5px;">This text is pasted at standard size</p>
  </body>
</html>

2. Open the created HTML file with a web browser
3. Copy into the clipboard the text from the page
4. Paste the clipboard into LibreOffice Impress

Actual Results:
The text is pasted correctly but formatting is ignored entirely.

Expected Results:
The text should show formatting, as it happens in LibreOffice Writer. Unformatted text should be pasted via Paste Special.


Reproducible: Always


User Profile Reset: No

Additional Info:
See #153341 for a related bug in LibreOffice Writer.
Comment 1 Buovjaga 2023-03-27 10:57:33 UTC

*** This bug has been marked as a duplicate of bug 117273 ***