[sword-cvs] sword/src/modules/filters osishtmlhref.cpp,1.9,1.10

sword@www.crosswire.org sword@www.crosswire.org
Sat, 28 Jun 2003 15:00:34 -0700


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

Modified Files:
	osishtmlhref.cpp 
Log Message:


Index: osishtmlhref.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/modules/filters/osishtmlhref.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** osishtmlhref.cpp	28 Jun 2003 19:04:21 -0000	1.9
--- osishtmlhref.cpp	28 Jun 2003 22:00:32 -0000	1.10
***************
*** 19,22 ****
--- 19,23 ----
  #include <utilxml.h>
  #include <versekey.h>
+ #include <swmodule.h>
  
  SWORD_NAMESPACE_START
***************
*** 34,37 ****
--- 35,40 ----
  	if (!substituteToken(buf, token)) {
  		XMLTag tag(token);
+ 		bool osisQToTick = ((!module->getConfigEntry("OSISqToTick")) || (strcmp(module->getConfigEntry("OSISqToTick"), "false")));
+ 
  		//printf("token = %s\n",token);
  		// <w> tag
***************
*** 224,229 ****
  
  				//alternate " and '
! 				if(lev)
! 					buf += (level % 2) ? '\'' : '\"';
  				
  				if (who == "Jesus") {
--- 227,232 ----
  
  				//alternate " and '
! 				if(osisQToTick)
! 					buf += (level % 2) ? '\"' : '\'';
  				
  				if (who == "Jesus") {
***************
*** 233,244 ****
  			else if (tag.isEndTag()) {
  				//alternate " and '
! 				if(lev)
! 					buf += (level % 2) ? '\'' : '\"';
  				//buf += "</font>";
  			}
  			else {	// empty quote marker
  				//alternate " and '
! 				if(lev)
! 					buf += (level % 2) ? '\'' : '\"';
  			}
  		}
--- 236,247 ----
  			else if (tag.isEndTag()) {
  				//alternate " and '
! 				if(osisQToTick)
! 					buf += (level % 2) ? '\"' : '\'';
  				//buf += "</font>";
  			}
  			else {	// empty quote marker
  				//alternate " and '
! 				if(osisQToTick)
! 					buf += (level % 2) ? '\"' : '\'';
  			}
  		}