Page 1 of 1

Weird expanding unibullet tag in rvxml

Posted: Tue Nov 15, 2005 1:43 pm
by martindholmes
Hi there,

I'm saving and reloading multiple RV documents into a single RVXML file, using techniques learned from the demos. As the files are saved and loaded, though, I'm seeing the unibullet marker tag expand every time, even though no new list styles are added. The tag looks like this in the XML file:

<marker type="unibullet" formatstr="ÃÃâ€Â.....

and it goes on and on for pages. Could anyone suggest what might be causing this?

All help appreciated,
Martin

Posted: Mon Nov 21, 2005 1:43 pm
by martindholmes
Replying to my own message, in case anyone else has the same problem:

I was forgetting to do DeleteUnusedStyles everywhere I needed to, so each time a document was loaded into the TRichViewEdit, it added styles to the list. I think there might be a bug in that the control wasn't detecting that the added styles were identical to those already in place, but in any case DeleteUnusedStyles solved the problem for my situation.

Cheers,
Martin

Posted: Mon Nov 21, 2005 2:56 pm
by Michel
I have seen the "style expansion" problem (in binary RVF) when repeatedly modifying a paragraph's Tab settings. This can be seen even in RVActionTest: just repeat several times with a single line of text: change Tab settings via the dialog box, hit Ok, save document, repeat. The document gradually grows with every new Tab setting. Which is kinda understandable. The fix is the same as what Margin has discovered. In my case, I simply set the RichViewEdit's property AutoDeleteUnusedStyles to True.

Best regards,

Michel

Posted: Tue Dec 13, 2005 6:49 pm
by Sergey Tkachenko
Returning to this old topic...
I cannot reproduce the problem with Unicode bullet. May be you use old version of RichViewXML? In my version, Unicode bullet is saved as hexadecimal string (1 unicode character --> 4 digits), for example:

Code: Select all

<marker type="unibullet" formatstr="·" formatstrw="DE06" leftindent="24" firstindent="0" fontname="Arial Unicode MS" fontsize="12" />
FormatStr must contain ANSI text, and it is not used for Unicode bullets.