[sword-svn] r3349 - trunk/src/modules/filters
refdoc at crosswire.org
refdoc at crosswire.org
Mon Mar 16 01:53:23 MST 2015
Author: refdoc
Date: 2015-03-16 01:53:23 -0700 (Mon, 16 Mar 2015)
New Revision: 3349
Modified:
trunk/src/modules/filters/teilatex.cpp
Log:
more teilatex work - footnotes now fixed
Modified: trunk/src/modules/filters/teilatex.cpp
===================================================================
--- trunk/src/modules/filters/teilatex.cpp 2015-03-16 08:40:05 UTC (rev 3348)
+++ trunk/src/modules/filters/teilatex.cpp 2015-03-16 08:53:23 UTC (rev 3349)
@@ -258,13 +258,19 @@
if (tag.isEndTag()) {
SWBuf footnoteNumber = tag.getAttribute("swordFootnote");
SWBuf noteName = tag.getAttribute("n");
-
- buf.appendFormatted("<a href=\"passagestudy.jsp?action=showNote&type=n&value=%s&module=%s&passage=%s\"><small><sup class=\"n\">*n%s</sup></small></a>",
+ SWBuf footnoteBody = "";
+ if (u->module){
+ footnoteBody += u->module->getEntryAttributes()["Footnote"][footnoteNumber]["body"];
+ }
+
+ buf.appendFormatted("\\swordfootnote{%s}{%s}{%s}{%s}{",
footnoteNumber.c_str(),
u->version.c_str(),
u->key->getText(),
renderNoteNumbers ? noteName.c_str() : ""));
-
+ if (u->module) {
+ buf += u->module->renderText(footnoteBody).c_str();
+ }
u->suspendTextPassThru = false;
}
}
More information about the sword-cvs
mailing list