[sword-cvs] sword/src/modules/filters osisrtf.cpp,1.4,1.5

sword@www.crosswire.org sword@www.crosswire.org
Wed, 18 Jun 2003 16:37:24 -0700


Update of /usr/local/cvsroot/sword/src/modules/filters
In directory www:/tmp/cvs-serv21123/src/modules/filters

Modified Files:
	osisrtf.cpp 
Log Message:
Added note popups for ESV (well, should work for all osis encoded notes)
Fixed static bug in SWModule::RenderText

Index: osisrtf.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/modules/filters/osisrtf.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** osisrtf.cpp	18 Jun 2003 20:55:18 -0000	1.4
--- osisrtf.cpp	18 Jun 2003 23:37:22 -0000	1.5
***************
*** 102,111 ****
  			catch ( ... ) {	}
  			if (vkey) {
! 				buf.appendFormatted("{<a href=\"\">*n%i.%i</a>}", vkey->Verse(), footnoteNumber);
  				SWBuf tmp;
  				tmp.appendFormatted("%i", ++footnoteNumber);
  				userData["fn"] = tmp.c_str();
- 				userData["suspendTextPassThru"] = "true";
  			}
  		}
  		if (tag.isEndTag()) {
--- 102,111 ----
  			catch ( ... ) {	}
  			if (vkey) {
! 				buf.appendFormatted("{\\super <a href=\"\">*%c%i.%i</a>} ", ((tag.getAttribute("type") && ((!strcmp(tag.getAttribute("type"), "crossReference")) || (!strcmp(tag.getAttribute("type"), "x-cross-ref")))) ? 'x':'n'), vkey->Verse(), footnoteNumber);
  				SWBuf tmp;
  				tmp.appendFormatted("%i", ++footnoteNumber);
  				userData["fn"] = tmp.c_str();
  			}
+ 			userData["suspendTextPassThru"] = "true";
  		}
  		if (tag.isEndTag()) {