Bug 162198 - FILEOPEN RTF Table has extra left/right padding instead of 0
Summary: FILEOPEN RTF Table has extra left/right padding instead of 0
Status: ASSIGNED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.2.0.4 release
Hardware: All All
: medium normal
Assignee: Oliver Specht (CIB)
URL:
Whiteboard: target:25.2.0
Keywords: bibisected, bisected, filter:rtf, regression
Depends on:
Blocks: RTF-Tables
  Show dependency treegraph
 
Reported: 2024-07-25 16:58 UTC by Gabor Kelemen (allotropia)
Modified: 2024-11-19 10:11 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Word 2016 (51.60 KB, application/msword)
2024-07-25 16:58 UTC, Gabor Kelemen (allotropia)
Details
The example file in Word 2016 and in Writer master (102.41 KB, image/png)
2024-07-25 16:59 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) 2024-07-25 16:58:42 UTC
Created attachment 195510 [details]
Example file from Word 2016

Attached example file contains a table, which in Word does not have left/right padding set on the cells.
In Writer the cells have 0.19 cm left/right padding.

1. Open attached file
-> the table contents have a bit of visible left padding instead of 0 seen in Word.

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: c60dd66d89dab2174aa71c26c653f68908c7ba78
CPU threads: 14; OS: Windows 10 X86_64 (10.0 build 19045); UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: default

This seems to have started in 5.2 for the right cell with:

https://git.libreoffice.org/core/+/47a218c3f9d8f12dab9813abc820d54f1e77b6f8

author	Miklos Vajna <vmiklos@collabora.co.uk>	Tue Jun 07 09:25:16 2016 +0200
committer	Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>	Tue Jun 07 17:51:55 2016 +0000

tdf#50821 RTF import: fix handling of \trpaddf{b,l,r,t}

and in 7.1 for the left cell with:

https://git.libreoffice.org/core/+/47a218c3f9d8f12dab9813abc820d54f1e77b6f8

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...
Comment 1 Gabor Kelemen (allotropia) 2024-07-25 16:59:50 UTC
Created attachment 195511 [details]
The example file in Word 2016 and in Writer master
Comment 2 Buovjaga 2024-09-10 12:02:55 UTC
Confirmed

Arch Linux 64-bit
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 880096c3a970389de9f1272509d2d03df046570a
CPU threads: 8; OS: Linux 6.10; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 10 September 2024
Comment 3 Commit Notification 2024-11-19 00:14:12 UTC
Oliver Specht committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/0313b56b931d78453ac5711d5f5f16eed38d02ca

tdf#162198 Reset default cell padding in RTF

It will be available in 25.2.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 4 Buovjaga 2024-11-19 10:11:43 UTC
After the commit, the X11 cell is fine, but yyy still has 0,19 cm padding for left & right.

If you select the X11 cell, it does have 0,01 cm for left & right instead of 0.

Arch Linux 64-bit
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: c8b607b7c0096c58dc5187262bf0133dee728d50
CPU threads: 8; OS: Linux 6.11; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 19 November 2024