Bug 148592 - FILESAVE RTF Text form field gets extra direct formatting
Summary: FILESAVE RTF Text form field gets extra direct formatting
Status: RESOLVED DUPLICATE of bug 108505
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: RTF-Character RTF-Fields
  Show dependency treegraph
 
Reported: 2022-04-14 12:28 UTC by Gabor Kelemen (allotropia)
Modified: 2024-08-13 10:47 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example RTF file from Word 2013 (44.50 KB, application/msword)
2022-04-14 12:28 UTC, Gabor Kelemen (allotropia)
Details
The example file saved by Writer master (9.36 KB, application/msword)
2022-04-14 12:29 UTC, Gabor Kelemen (allotropia)
Details
Formatting of the fields inside the table in Word and Writer (111.67 KB, image/png)
2022-04-14 12:29 UTC, Gabor Kelemen (allotropia)
Details
Formatting of the fields outside the table in Word and Writer (108.83 KB, image/png)
2022-04-14 12:30 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2022-04-14 12:28:50 UTC
Created attachment 179552 [details]
Example RTF file from Word 2013

Attached RTF example file contains some text fields, some inside a table.

When this is saved as RTF in Writer, the fields inside the table get an extra Arial 11 pt direct formatting, and the field outside the table at the end of the line gets bold direct formatting which were not there in the original document.

1. Open attached document in Writer
2. Save as RTF
3. Open the original and the saved document in Word

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 6f39602ecb9b90795bfd4101273f90b16f17b6d6
CPU threads: 14; OS: Windows 10.0 Build 19044; UI render: default; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: threaded Jumbo

Started in 6.4, in 6.3 that these fields were not saved as fields. 
In 6.4 they started to be saved as fields, and got no extra formatting before commit:

https://git.libreoffice.org/core/+/3073a6de85d5d7fd8837d1ae25306d03e857f8d7

author	Michael Stahl <Michael.Stahl@cib.de>	Tue Nov 19 17:33:05 2019 +0100
committer	Michael Stahl <michael.stahl@cib.de>	Wed Nov 20 16:51:38 2019 +0100

sw: revert change in expanding hints in SwXText::insertTextContent()

Adding CC to: Michael Stahl
Comment 1 Gabor Kelemen (allotropia) 2022-04-14 12:29:11 UTC
Created attachment 179553 [details]
The example file saved by Writer master
Comment 2 Gabor Kelemen (allotropia) 2022-04-14 12:29:54 UTC
Created attachment 179554 [details]
Formatting of the fields inside the table in Word and Writer
Comment 3 Gabor Kelemen (allotropia) 2022-04-14 12:30:17 UTC
Created attachment 179555 [details]
Formatting of the fields outside the table in Word and Writer
Comment 4 Dieter 2022-05-02 07:01:32 UTC
I confirm it with

Version: 7.3.3.2 (x64) / LibreOffice Community
Build ID: d1d0ea68f081ee2800a922cac8f79445e4603348
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

and with Word 2016
Comment 5 QA Administrators 2024-08-09 03:14:39 UTC Comment hidden (obsolete)
Comment 6 Gabor Kelemen (allotropia) 2024-08-13 10:47:18 UTC
This seems to be fixed in 24.2 since:

https://git.libreoffice.org/core/+/ecf9e5b85ae1fae2ee3dc8db2b70aeb8202225f2

author	Justin Luth <justin.luth@collabora.com>	Tue Dec 05 21:43:16 2023 -0500
committer	Xisco Fauli <xiscofauli@libreoffice.org>	Tue Dec 12 09:39:05 2023 +0100

tdf#108505 rtfexport: avoid mis-inheriting field char settings

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