Bug 148592 - FILESAVE RTF Text form field gets extra direct formatting
Summary: FILESAVE RTF Text form field gets extra direct formatting
Status: NEW
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: 2022-08-09 21:58 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