[sword-cvs] sword/src/modules/filters osishtmlhref.cpp,1.7,1.8

sword@www.crosswire.org sword@www.crosswire.org
Fri, 27 Jun 2003 10:46:09 -0700


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

Modified Files:
	osishtmlhref.cpp 
Log Message:
modified quote and paragraph tags

Index: osishtmlhref.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/modules/filters/osishtmlhref.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** osishtmlhref.cpp	27 Jun 2003 06:13:16 -0000	1.7
--- osishtmlhref.cpp	27 Jun 2003 17:46:07 -0000	1.8
***************
*** 139,149 ****
  		else if (!strcmp(tag.getName(), "p")) {
  			if ((!tag.isEndTag()) && (!tag.isEmpty())) {	// non-empty start tag
! 				buf += "<br />";
  			}
  			else if (tag.isEndTag()) {	// end tag
! 				buf += "<br />";
  			}
  			else {					// empty paragraph break marker
! 				buf += "<br /><br />";
  			}
  		}
--- 139,149 ----
  		else if (!strcmp(tag.getName(), "p")) {
  			if ((!tag.isEndTag()) && (!tag.isEmpty())) {	// non-empty start tag
! 				buf += "<!P><br />";
  			}
  			else if (tag.isEndTag()) {	// end tag
! 				buf += "<!/P><br />";
  			}
  			else {					// empty paragraph break marker
! 				buf += "<!P><br />";
  			}
  		}
***************
*** 224,240 ****
  
  				//alternate " and '
! 				buf += (level % 2) ? '\'' : '\"';
  				
! 				if (who == "Jesus")
  					buf += "<font color=\"red\"> ";
  			}
  			else if (tag.isEndTag()) {
  				//alternate " and '
! 				buf += (level % 2) ? '\'' : '\"';
! 				buf += "</font>";
  			}
  			else {	// empty quote marker
  				//alternate " and '
! 				buf += (level % 2) ? '\'' : '\"';
  			}
  		}
--- 224,244 ----
  
  				//alternate " and '
! 				if(lev)
! 					buf += (level % 2) ? '\'' : '\"';
  				
! 				if (who == "Jesus") {
  					buf += "<font color=\"red\"> ";
+ 				}
  			}
  			else if (tag.isEndTag()) {
  				//alternate " and '
! 				if(lev)
! 					buf += (level % 2) ? '\'' : '\"';
! 				//buf += "</font>";
  			}
  			else {	// empty quote marker
  				//alternate " and '
! 				if(lev)
! 					buf += (level % 2) ? '\'' : '\"';
  			}
  		}