[bt-devel] Problems with text rendering

Martin Gruner mg.pub at gmx.net
Mon Oct 12 09:04:32 MST 2009


Hi Troy,

may I ask for your help with a rendering issue we are experiencing? I believe 
the code once came from you (simplerender.patch).

It is in our OSIS filter descendant, where crossref notes are processed.

<code>
               if (type == "crossReference") { //note containing cross 
references
                    myUserData->inCrossrefNote = true;
                    myUserData->noteType = BT_UserData::CrossReference;

                    buf.append("<span class=\"crossreference\">");
                    sword::SWBuf footnoteNumber = 
tag.getAttribute("swordFootnote");
                    sword::SWBuf footnoteBody = myUserData-
>entryAttributes["Footnote"][footnoteNumber]["body"];
                    buf += myModule->RenderText(footnoteBody);
                }
</code>

Now the problem seems to be the final RenderText() call. It destroys the 
EntryAttributes structure when processing the footnote body.

Can you give me a hint how I can work around that? Is there a better, 
preferred method?

Thanks and regards, Martin

-- 

Bauplan des Lebens - längst im Gen entdeckt!
Die Wissenschaft ist stolz: Sie hat's gecheckt.
Nun ist der Bauplan als Beweis beliebt,
dass es den Architekten gar nicht gibt.

Wolf Rahn



More information about the bt-devel mailing list