Created attachment 184443 [details] Example file from Word 2016 Attached example file contains a table with different number of columns in rows. In Word the second rows second and third cells have their top border turned off, but in Writer this is visible. 1. Open attached file 2. Notice the cell starting with 2 and the empty one right of it has top border, unlike in Word. Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 44355a90b3450111ad87ad4b6607a564e41d7b54 CPU threads: 14; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win Locale: de-DE (hu_HU); UI: en-US Calc: threaded and all the way back to 3.6. In 3.5 there was no border imported at all. If the same example is saved to docx, it had the same import issue fixed in 5.3 times with: https://git.libreoffice.org/core/+/1d1748d143ab4270a2ca1b5117852b1b1bb4c author Miklos Vajna <vmiklos@collabora.co.uk> Tue Aug 30 09:14:47 2016 +0200 committer Miklos Vajna <vmiklos@collabora.co.uk> Tue Aug 30 08:40:30 2016 +0000 Related: tdf#44986 DOCX import: handle w:gridAfter by faking cells
Created attachment 184444 [details] The example file in Word 2016 and Writer
Created attachment 184449 [details] Same file as docx, for reference
Confirm with Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: d993327eab0a2c9c8820c6528075b01de68b0ec6 CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US Calc: threaded
Created attachment 184627 [details] Minimized RTF sample I've stripped down testcase to minimal for problem to became clear. As far I see, there is problem with non-rectangular tables: * first row contains only one cell and border below * second row contains 2 cells * in Writer first row is extended to fit entire table width unlike in Word. I see that for DOCX Writer does creates extra cells in first row to make rectangular table. But it is not done for RTF.
Created attachment 191084 [details] Updated example file
The content of attachment 184443 [details] has been deleted for the following reason: User's request
This got better with https://git.libreoffice.org/core/commit/13cd36248069d32688cfb8adfe0955ca5229e075 tdf#148554 RTF import - reset borders on fill cells It will be available in 25.2.0. My attachment 191084 [details] from comment #4 now looks like in Word, but Vasily's attachment 184627 [details] from comment #3 is still bad, the border is above the B2 cell with "C", unlike in Word. Keeping it open for the latter case.
Oliver Specht committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/038473595ed266d15a788d8f97781cbaf066cfe7 tdf#152839 add fill cells to tables imported wrongly from 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.
Should be fine with the latter patch fixing Vasily's minimal example from comment #4