Page 1 of 1

Saving lists to RTF problem

Posted: Sun Oct 17, 2010 9:04 am
by ilyalyu
The pictures bellow show how lists look like after saving them in RTF format.

Picture 1: ordered and unordered lists in TRichView.
Picture 2: ordered and unordered lists in WordPad (default Windows editor for RTF files) - there are strange tabs that were not present in TRichView.
Picture 3: ordered and unordered lists in OpenOffice - there are no numbers in ordered list and no bullets in unordered list.

Conclusion: after saving in RTF format, lists are not shown correctly in other editors except TRichView.

Image
Image
Image

Posted: Sun Oct 17, 2010 4:13 pm
by Sergey Tkachenko
There are 2 ways of storing lists in RTF.
1) Old way, used in MS Word 6 and still used in WordPad.
2) New way, used in MS Word 97 - 2010, and in TRichView.

Try copying bulleted or numbered paragraphs from MS Word to WordPad. You will see the same results: marker is copied as text + tab.
Text+tab is stored as an alternative for RTF readers that do not understand lists.

When you copy between MS Word and TRichView, lists are copy-pasted correctly.
Sorry, I do not plan to implement saving old-style RTF (reading is supported, though).

I do not know why OO dos not read this RTF...