Bug 154581 - Paragraph language and character formatting (bold, italic) lost when pasting HTML
Summary: Paragraph language and character formatting (bold, italic) lost when pasting ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.0.0 alpha0+
Hardware: x86-64 (AMD64) Linux (All)
: high normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
: 156612 (view as bug list)
Depends on:
Blocks: HTML-Paste
  Show dependency treegraph
 
Reported: 2023-04-03 12:11 UTC by Stéphane Guillou (stragu)
Modified: 2023-08-10 11:41 UTC (History)
3 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 Stéphane Guillou (stragu) 2023-04-03 12:11:03 UTC
Steps:
1. Open Writer
2. Copy paragraph in French from https://translate.google.com/?sl=en&tl=fr&text=To%20be%20hopeful%20in%20bad%20times%20is%20not%20just%20foolishly%20romantic.%20It%20is%20based%20on%20the%20fact%20that%20human%20history%20is%20a%20history%20not%20only%20of%20cruelty%2C%20but%20also%20of%20compassion%2C%20sacrifice%2C%20courage%2C%20kindness.&op=translate
3. Paste into Writer

Result: paragraph language remains the document's default instead of being copied across.

Regression bibisected with linux-64-7.6 repository to first bad commit 134be7c58b05aa3cec939901f66430b2f87b8e4e which points to core commit:

commit db115bec9254417ef7a3faf687478fe5424ab378
author	Michael Stahl <michael.stahl@allotropia.de>	Tue Feb 14 18:03:55 2023 +0100
committer	Michael Stahl <michael.stahl@allotropia.de>	Fri Feb 24 07:32:23 2023 +0000
tree 0b5f58cda73137302fd955db3e0958dda71358fb
parent 7e7b69829db63e64b8aed8d03c6eaed6d8f1a27c
tdf#78510 sw,cui: split SvxLRSpaceItem for SwTextNode, SwTextFormatColl
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147024

Michael, can you please have a look?
Comment 1 Stéphane Guillou (stragu) 2023-08-10 09:04:38 UTC
*** Bug 156612 has been marked as a duplicate of this bug. ***
Comment 2 Stéphane Guillou (stragu) 2023-08-10 09:09:13 UTC
From duplicate bug 156612, we also have lost italics and bold character formatting. Can be tested with attachment 188774 [details].

Setting priority to "major" as it's a regression affecting basic functionality.

Michael, can you please have a look?
Comment 3 Stéphane Guillou (stragu) 2023-08-10 09:09:58 UTC
(In reply to Stéphane Guillou (stragu) from comment #2)
> Setting priority to "major"

to "high", sorry.