Bug 158549 - Copy / Paste from gDocs loses the style formatting
Summary: Copy / Paste from gDocs loses the style formatting
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Michael Stahl (allotropia)
URL:
Whiteboard: target:24.8.0 target:24.2.4 target:7....
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Paste
  Show dependency treegraph
 
Reported: 2023-12-05 15:49 UTC by someone917
Modified: 2024-05-09 10:40 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Copy/Paste using alternative Office Writer (95.16 KB, image/png)
2023-12-05 15:51 UTC, someone917
Details
Copy/Paste to LibreOffice Writer (109.64 KB, image/png)
2023-12-05 15:51 UTC, someone917
Details

Note You need to log in before you can comment on or make changes to this bug.
Description someone917 2023-12-05 15:49:15 UTC
Description:
Recently I discovered, while copying from Google Docs document into LibreOffice Writer,
the text formatting is lost.
Which is something I have been using for years, and it used to work flawlessly.

Copying formatted text from gMail though works as it is supposed to.

I am using:

Version: 7.6.3.1 (X86_64)
Build ID: 60(Build:1)
CPU threads: 8; OS: Linux 6.6; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

On, Fedora Linux 39.

Furthermore, I installed the O20.Word and did the same experiment: copying formatted text from gDocs into the Word-editor (into an .odt file). It worked. 
Which points out to a problem originating from LibreOffice.




Steps to Reproduce:
1. Format some text in gDocs: bold, italic, underline, href-link
2. copy/paste it to LibreOffice, Writer
3. The result is that the formatting is lost.

Actual Results:
Copy/paste of formatted text use to work until recently. 

Expected Results:
Copy/Paste with formatted text bw. gDocs and LibreOffice Writer.


Reproducible: Always


User Profile Reset: No

Additional Info:
n/a
Comment 1 someone917 2023-12-05 15:51:02 UTC
Created attachment 191251 [details]
Copy/Paste using alternative Office Writer
Comment 2 someone917 2023-12-05 15:51:40 UTC
Created attachment 191252 [details]
Copy/Paste to LibreOffice Writer
Comment 3 raal 2023-12-05 19:32:52 UTC
I can confirm with Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 55097433ed766a2ced6b87021a71c8a31cde9d99
CPU threads: 4; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded

Works in Version: 7.3.7.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 4; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: cs-CZ
Ubuntu package version: 1:7.3.7-0ubuntu0.22.04.3
Calc: threaded
Comment 4 raal 2023-12-05 19:40:52 UTC
This seems to have begun at the below commit in bibisect repository/OS linux-64-7.6.
Adding Cc: to 	Michael Stahl ; Could you possibly take a look at this one?
Thanks
 94ff994d396ae38edf4f72215452b4c4b086490d is the first bad commit
commit 94ff994d396ae38edf4f72215452b4c4b086490d
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Wed Oct 25 05:46:44 2023 +0200

    source db115bec9254417ef7a3faf687478fe5424ab378

https://git.libreoffice.org/core/+/db115bec9254417ef7a3faf687478fe5424ab378
tdf#78510 sw,cui: split SvxLRSpaceItem for SwTextNode, SwTextFormatColl
Comment 5 someone917 2024-01-04 13:42:20 UTC
Thanks,

is it already on the roadmap for bugfixes?
Comment 6 Stéphane Guillou (stragu) 2024-01-04 14:42:22 UTC
(In reply to someone917 from comment #5)
> is it already on the roadmap for bugfixes?
It will get looked at when a developer decides to take care of it.
Please keep the status at "new" as "needinfo" is only for more information is needed to be able to reproduce the issue. "New" means it is confirmed and waiting for a fix.

Public document sample to test:

https://docs.google.com/document/d/1jxcGuhVnjtf65WO9pfBbru5GRBCsGQhd2F_HrQCqvtM/edit?usp=sharing

Still reproduced in:

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 960e37af28807ed1b376e26c4504ab755a81dfd5
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Also reproduced on macOS.
Comment 7 Commit Notification 2024-04-26 11:00:05 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/ac05822b8957d80018d3ce1cbf97cd9faa0dfe99

tdf#154581 tdf#157411 tdf#158549 sw: HTML import: fix SfxItemIter reuse

It will be available in 24.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 8 Michael Stahl (allotropia) 2024-04-26 11:05:35 UTC
reportedly fixed on master
Comment 9 Commit Notification 2024-04-29 16:40:09 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "libreoffice-24-2":

https://git.libreoffice.org/core/commit/d33d3bbd9fb021c9ef15689f4e8e5b9898541e70

tdf#154581 tdf#157411 tdf#158549 sw: HTML import: fix SfxItemIter reuse

It will be available in 24.2.4.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 10 Commit Notification 2024-04-29 16:40:16 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "libreoffice-7-6":

https://git.libreoffice.org/core/commit/f6fb5dedc3926ce214560a4053815f692b29b934

tdf#154581 tdf#157411 tdf#158549 sw: HTML import: fix SfxItemIter reuse

It will be available in 7.6.8.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 11 Commit Notification 2024-04-29 16:43:26 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "libreoffice-24-2-3":

https://git.libreoffice.org/core/commit/9b5b007df580eaeff2bab2fda9a6cb45e3a3bd24

tdf#154581 tdf#157411 tdf#158549 sw: HTML import: fix SfxItemIter reuse

It will be available in 24.2.3.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 12 Commit Notification 2024-05-07 16:12:35 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "libreoffice-7-6-7":

https://git.libreoffice.org/core/commit/598cc6c5f03bf0aae525e80ae6960de2c78efeae

tdf#154581 tdf#157411 tdf#158549 sw: HTML import: fix SfxItemIter reuse

It will be available in 7.6.7.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 13 Commit Notification 2024-05-09 10:40:52 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/0479f870e05d5d231d2d57aaeedff11544bd370c

tdf#154581 tdf#157411 tdf#158549: sw_htmlimport: Add unittest

It will be available in 24.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.