Bug 148578 - FILEOPEN RTF Table left indent incorrect
Summary: FILEOPEN RTF Table left indent incorrect
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: RTF-Tables
  Show dependency treegraph
 
Reported: 2022-04-13 22:04 UTC by Gabor Kelemen (allotropia)
Modified: 2022-04-15 14:37 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments
Example RTF file from Word 2013 (56.64 KB, application/msword)
2022-04-13 22:04 UTC, Gabor Kelemen (allotropia)
Details
Screenshot of the first tables settings in Word and Writer (101.42 KB, image/png)
2022-04-13 22:05 UTC, Gabor Kelemen (allotropia)
Details
Screenshot of the second tables settings in Word and Writer (102.87 KB, image/png)
2022-04-13 22:05 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-13 22:04:32 UTC
Created attachment 179541 [details]
Example RTF file from Word 2013

Attached document contains two left aligned tables with left/right inner padding set.
When opened in Writer these tables move a bit to the left compared to Word.

1. Open attached file in Word and Writer
2. Compare the first tables indent and cell margin settings in Word and Writer: it has 0 cm left indent, 0.5 cm left margin and 0.3 cm right margin set.
When opened in Writer it has -1 cm left spacing (double of the 0.5 cm left padding extracted from the 0 left indent)
3. Compare the second tables indent and cell margin settings in Word and Writer: it has 1.5 cm left indent, 0.35 cm left margin and 0.3 cm right margin set.
When opened in Writer it has 0.8 cm left spacing (double of the 0.35 cm left padding extracted from the 1.5 cm left indent)

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

This was good in 6.4, with -0.5 cm left spacing imported for the first table and 1.15 cm left spacing for the second (the amount of left padding extracted from the left indent). While these values do not match the values seen in Word, the layout matches.

It started to break in 7.0 with:
https://git.libreoffice.org/core/+/d978f5d40102a098f1faf1e98aa39ad122284299

author	Michael Stahl <Michael.Stahl@cib.de>	Mon Feb 10 19:20:03 2020 +0100
committer	Michael Stahl <michael.stahl@cib.de>	Tue Feb 11 11:57:35 2020 +0100

related: tdf#106742 sw: DOCX import/export: fix default of table indent

This changed the first tables left spacing to -0.75 cm and the second tables left spacing to 0.90 cm.

It broke to the current status in 7.1 with:
https://git.libreoffice.org/core/+/fc872146845e4d77ff404d0929f28abf2d3a1c51

author	Michael Stahl <Michael.Stahl@cib.de>	Wed Oct 21 17:53:07 2020 +0200
committer	Michael Stahl <michael.stahl@cib.de>	Thu Oct 22 09:38:19 2020 +0200

tdf#137085 writerfilter: RTF import: \trpaddfl and \trpaddl are row...

Adding CC to: Michael Stahl
Comment 1 Gabor Kelemen (allotropia) 2022-04-13 22:05:00 UTC
Created attachment 179542 [details]
Screenshot of the first tables settings in Word and Writer
Comment 2 Gabor Kelemen (allotropia) 2022-04-13 22:05:25 UTC
Created attachment 179543 [details]
Screenshot of the second tables settings in Word and Writer
Comment 3 Xisco Faulí 2022-04-15 14:37:20 UTC
Reproduced in

Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: ab8d141967111ca81f4607db3618bb09214e42db
CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: gtk3
Locale: es-ES (es_ES.UTF-8); UI: en-US
Calc: threaded