Bug 82697 - FILESAVE: RTF - Table of Contents [TOC] wasn't outputted correctly, now cannot be reopen
Summary: FILESAVE: RTF - Table of Contents [TOC] wasn't outputted correctly, now canno...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.4.0.0.alpha0+ Master
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:rtf
Depends on:
Blocks: RTF
  Show dependency treegraph
 
Reported: 2014-08-16 08:52 UTC by Yousuf Philips (jay) (retired)
Modified: 2024-02-01 03:15 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
RTF (left) VS DOCX (right) (167.76 KB, image/png)
2014-08-16 08:52 UTC, Yousuf Philips (jay) (retired)
Details
DOCX in LibO (left) VS LibO RTF in Word 2013 (right) (193.96 KB, image/png)
2014-08-16 08:56 UTC, Yousuf Philips (jay) (retired)
Details
The example file and its RTF version in Writer master (167.54 KB, image/png)
2022-01-31 23:29 UTC, Gabor Kelemen (allotropia)
Details
Outline level setting in the original docx and its RTF version in Writer (118.15 KB, image/png)
2022-01-31 23:40 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yousuf Philips (jay) (retired) 2014-08-16 08:52:41 UTC
Created attachment 104714 [details]
RTF (left) VS DOCX (right)

Steps:
1) open attachment 104685 [details]
2) look at the TOC on page 3 and how all entries have a grey background color (i'm assuming this grey background has to do with some feature of TOC)
3) save it as an RTF, close it, reopen the RTF, and return to TOC

Problem: Only the first entry has the grey background color, as seen in the attached screenshot. The text being blue and having an underline is a fileopen issue and has already been reported in bug 82071.

4) open RTF in MS Word 2007, 2010, or 2013
5) goto page 3 to compare the TOC

Problems in MS Word:
1) When opening the RTF, you get a notice on how to add/remove entries from the TOC (Word is thinking there arent any entries in the TOC).
2) 'No table of contents entries found.' is written before the first entry in the TOC.
3) The grey background color doesnt appears behind TOC entries
4) Page numbers arent aligned on the right

Tested in 4.4 (2014-08-12) on Windows and 4.3.2 (2014-08-09) on Linux.
Comment 1 Yousuf Philips (jay) (retired) 2014-08-16 08:56:55 UTC
Created attachment 104715 [details]
DOCX in LibO (left) VS LibO RTF in Word 2013 (right)
Comment 2 Buovjaga 2014-11-12 10:22:35 UTC
Reproduced steps 1-3.

Win 7 64-bit Version: 4.4.0.0.alpha2+
Build ID: b021b5983c62e266b82d9f0c5c6d8d8900553827
TinderBox: Win-x86@42, Branch:master, Time: 2014-11-12_00:19:18
Comment 3 Robinson Tryon (qubit) 2015-12-10 01:08:29 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2017-01-03 19:43:09 UTC Comment hidden (obsolete)
Comment 5 Timur 2019-11-10 14:49:16 UTC
Repro 6.4+
But this DOCX has only ToC and no contents. So I guess not a valid example.
Better to test with original DOCX  attachment 103815 [details].
Saving in Lo 6.4+ as RTF on reopen in LO gives "File format error at 3116,7(row,col)". MSO is unable to open document.

Note: RT and ToC update of DOCX gives somewhat different table, seems trivial. Looks OK in MSO.
RT of DOC gives wrong preview of table but ToC update fixes that. MSO opens with errors and repairs. ToC also looks wrong and update somewhat fixes it.
Comment 6 QA Administrators 2021-11-10 04:08:31 UTC Comment hidden (obsolete)
Comment 7 Gabor Kelemen (allotropia) 2022-01-31 23:29:17 UTC
Created attachment 177955 [details]
The example file and its RTF version in Writer master

Looks better now, there is no weird read error upon reload or open in Word. Indents of page numbers on the right look also good.
Upon reopen the links don't seem to work on Ctrl-Click (may be related to bug 122621 ) and the title is also not present in the TOC properties dialog.

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: eb69767d7c1bb8e6e780fd9503f08c9d7f5ecb45
CPU threads: 13; OS: Windows 10.0 Build 19042; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: threaded

Still: opening a DOCX TOC is still not perfect and saving it to RTF is even less so. We can keep this around to hunt for more issues.
Comment 8 Gabor Kelemen (allotropia) 2022-01-31 23:40:03 UTC
Created attachment 177956 [details]
Outline level setting in the original docx and its RTF version in Writer

Weakest point still: paragraphs lose their Outline level setting when saved to RTF. 
The TOC is built on outline levels, so updating the TOC in the RTF version results in an empty TOC.
Comment 9 QA Administrators 2024-02-01 03:15:41 UTC
Dear Yousuf Philips (jay) (retired),

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug