[bt-devel] OSIS crossrefs rendering bug (added by Martin, patch by Troy - BibleTime or Sword bug?)

Eeli Kaikkonen eekaikko at mail.student.oulu.fi
Fri May 8 15:39:17 MST 2009


The OSIS crossrefs work with Sword 1.5.9. However, with the latest Sword 
version they don't work.

If you add some debugs in BT_OSISHTML::handleToken, you can see how all 
but the first footnotes are empty.

#ifdef SWORD_SIMPLERENDER
	sword::SWBuf footnoteNumber = tag.getAttribute("swordFootnote");
	qDebug(footnoteNumber);
	sword::SWBuf footnoteBody = 
myModule->getEntryAttributes()["Footnote"][footnoteNumber]["body"];
	qDebug(footnoteBody);
	buf += myModule->RenderText(footnoteBody);
#endif

SwordFootnote 1 always works, but 2, 3... don't work. This have caused 
the bug with the ESV module. It's easy to find a verse where there's 
more than one footnotes.

Martin has added the code in svn rev. 946: "Include Patch by Troy A. 
Griffitts to improve rendering with recent sword library"


--Eeli Kaikkonen



More information about the bt-devel mailing list