[sword-svn] r3386 - trunk/src/modules/filters
refdoc at crosswire.org
refdoc at crosswire.org
Thu Sep 3 04:54:51 MST 2015
Author: refdoc
Date: 2015-09-03 04:54:51 -0700 (Thu, 03 Sep 2015)
New Revision: 3386
Modified:
trunk/src/modules/filters/osislatex.cpp
Log:
filter the note "type" attribute into the Latex output, similar should be considered for osisxhtml.cpp, but would break the existing use.
Modified: trunk/src/modules/filters/osislatex.cpp
===================================================================
--- trunk/src/modules/filters/osislatex.cpp 2015-09-02 22:03:18 UTC (rev 3385)
+++ trunk/src/modules/filters/osislatex.cpp 2015-09-03 11:54:51 UTC (rev 3386)
@@ -294,8 +294,8 @@
}
SWBuf noteName = tag.getAttribute("n");
VerseKey *vkey = NULL;
- // char ch = ((tag.getAttribute("type") && ((!strcmp(tag.getAttribute("type"), "crossReference")) || (!strcmp(tag.getAttribute("type"), "x-cross-ref")))) ? 'x':'n');
+
u->inXRefNote = true; // Why this change? Ben Morgan: Any note can have references in, so we need to set this to true for all notes
// u->inXRefNote = (ch == 'x');
@@ -306,21 +306,23 @@
SWCATCH ( ... ) { }
if (vkey) {
//printf("URL = %s\n",URL::encode(vkey->getText()).c_str());
- buf.appendFormatted("\\swordfootnote{%s}{%s}{%s}{%s}{",
+ buf.appendFormatted("\\swordfootnote{%s}{%s}{%s}{%s}(%s){",
footnoteNumber.c_str(),
u->version.c_str(),
vkey->getText(),
+ tag.getAttribute("type"),
(renderNoteNumbers ? noteName.c_str() : ""));
if (u->module) {
buf += u->module->renderText(footnoteBody).c_str();
}
}
else {
- buf.appendFormatted("\\swordfootnote{%s}{%s}{%s}{%s}{",
+ buf.appendFormatted("\\swordfootnote{%s}{%s}{%s}{%s}{%s}{",
footnoteNumber.c_str(),
u->version.c_str(),
- u->key->getText(),
+ u->key->getText(),
+ tag.getAttribute("type"),
(renderNoteNumbers ? noteName.c_str() : ""));
if (u->module) {
buf += u->module->renderText(footnoteBody).c_str();
More information about the sword-cvs
mailing list