Download it now!
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: 2019-11-10 14:49 UTC (History)
1 user (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

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.