Bug 122424 - FILEOPEN RTF: In a specific document space character after table moves to the first cell of next row
Summary: FILEOPEN RTF: In a specific document space character after table moves to the...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: RTF-Tables
  Show dependency treegraph
 
Reported: 2019-01-02 15:11 UTC by NISZ LibreOffice Team
Modified: 2023-09-04 19:55 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
A screenshot showcasing the issue. (87.58 KB, image/png)
2019-01-02 15:11 UTC, NISZ LibreOffice Team
Details
An example file (54.70 KB, application/msword)
2019-01-02 15:12 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NISZ LibreOffice Team 2019-01-02 15:11:06 UTC
Description:
A space character moves from the cell at the end of the first line to the first cell of the next line when opened in LibreOffice Writer 6.3.0.0.alpha0+.

Steps to Reproduce:
1. Open the attached RTF file in both in LibreOffice Writer and Microsoft Word.
2. Notice, that the space character at the end of the first line (“EEE:”) moves to the first cell of the next line (“FFF:”).

Actual Results:
A space character moves from the cell at the end of the first line to the first cell of the next line.

Expected Results:
The position of the space character should be preserved.


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 NISZ LibreOffice Team 2019-01-02 15:11:45 UTC
Created attachment 147940 [details]
A screenshot showcasing the issue.
Comment 2 NISZ LibreOffice Team 2019-01-02 15:12:10 UTC
Created attachment 147941 [details]
An example file
Comment 3 Dieter 2019-01-02 19:24:04 UTC
I confirm the results, but I don't think, that it is the right description, because when you open the file in Word you can't delete, those "space characters". So I'm not sure what it is. And I won't expect an additional space character behind the table in LO.
Comment 4 Gabor Kelemen (allotropia) 2019-01-02 22:46:31 UTC
(In reply to Dieter Praas from comment #3)
> I confirm the results, but I don't think, that it is the right description,
> because when you open the file in Word you can't delete, those "space
> characters". So I'm not sure what it is. And I won't expect an additional
> space character behind the table in LO.

In a newly inserted table in Word there is no space after the last column and before the row end character, but in this particular document there is one.

Also if you type something at that position then the characters move to the first cell of the next row.

It may be true that this is some sort of malformed document that is not possible to create with Word, yet it seems to tolerate it.

This is used by a third party application, which generates a page long summary from some data it maintains. This document is the first few rows of that summary.

The small row height growth caused by the 12 pt TNR "space" being inserted into the 7 pt Tahoma + 11 pt Arial Narrow rows causes the last two rows of the page slip to the next page, to the frustration of users.

All in all, we kinda *really* need this sort of document to work. 
Let me confirm this, half of my workday was spent on understanding this doc :D.
Comment 5 Dieter 2019-01-03 08:08:59 UTC
(In reply to Gabor Kelemen from comment #4)
> It may be true that this is some sort of malformed document that is not
> possible to create with Word, yet it seems to tolerate it.
> 
> This is used by a third party application, which generates a page long
> summary from some data it maintains. This document is the first few rows of
> that summary.

Might be useful to know by which application the rtf file was created.
Comment 6 Commit Notification 2019-01-04 17:44:46 UTC
László Németh committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/+/dc8fa612054363e1a871b0e413a59889fbdb156a%5E%21

tdf#122424 RTF import: ignore table row text outside the cells

It will be available in 6.3.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 7 Cor Nouws 2019-01-05 14:55:44 UTC
thanks for the fix - already a problem in OOo-times.
Comment 8 Gabor Kelemen (allotropia) 2019-01-07 08:49:28 UTC
(In reply to Dieter Praas from comment #5)
> Might be useful to know by which application the rtf file was created.

It's called Erdészeti Szakigazgatási Információs Rendszer (~Forestry administration information system), and it is not a publicly available application.
It's used by the Hungarian Government Offices to administer activities happening in and around the forestry sector, as described here (in Hungarian):

http://portal.nebih.gov.hu/erdeszeti-igazgatosag
Comment 9 Xisco Faulí 2019-03-12 14:49:46 UTC
The commit fixing this issue was reverted in https://gerrit.libreoffice.org/plugins/gitiles/core/+/4d32ad37b86200fe207dd1eda2bed11109b08d00%5E%21 in order to fix bug 123434
Comment 10 QA Administrators 2023-02-12 03:20:55 UTC Comment hidden (obsolete)
Comment 11 Michaela 2023-09-04 19:55:29 UTC
Still repro with:
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: e46e663cc350d89e4997095466d675b875eb2e04
CPU threads: 12; OS: Windows 10.0 Build 22621; UI render: Skia/Vulkan; VCL: win