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

_______________________________________________
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Reply via email to