[sword-cvs] sword/src/modules/filters thmlhtmlhref.cpp,1.32,1.33

sword@www.crosswire.org sword@www.crosswire.org
Fri, 20 Jun 2003 10:47:55 -0700


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

Modified Files:
	thmlhtmlhref.cpp 
Log Message:
fixed mismached <) (> for strongs and morphs


Index: thmlhtmlhref.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/modules/filters/thmlhtmlhref.cpp,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** thmlhtmlhref.cpp	20 Jun 2003 14:52:34 -0000	1.32
--- thmlhtmlhref.cpp	20 Jun 2003 17:47:53 -0000	1.33
***************
*** 142,150 ****
  		XMLTag tag(token);
  		if (tag.getName() && !strcmp(tag.getName(), "sync")) {
! 			if( tag.getAttribute("type") && !strcmp(tag.getAttribute("type"), "morph")) {
! 				buf += "<small><em> (<a href=\"";
  			}
  			else {
! 				buf += "<small><em> &lt;<a href=\"";
  			}
  
--- 142,150 ----
  		XMLTag tag(token);
  		if (tag.getName() && !strcmp(tag.getName(), "sync")) {
! 			if( tag.getAttribute("type") && !strcmp(tag.getAttribute("type"), "morph")) { //&gt;
! 				buf += "<small><em>(<a href=\"";
  			}
  			else {
! 				buf += "<small><em>&lt;<a href=\"";
  			}
  
***************
*** 164,170 ****
  
  			if(tag.getAttribute("type") && !strcmp(tag.getAttribute("type"), "morph"))
- 				buf += "</a>&gt; </em></small>";
- 			else
  				buf += "</a>) </em></small>";
  		}
  		else if (tag.getName() && !strcmp(tag.getName(), "scripture")) {
--- 164,170 ----
  
  			if(tag.getAttribute("type") && !strcmp(tag.getAttribute("type"), "morph"))
  				buf += "</a>) </em></small>";
+ 			else
+ 				buf += "</a>&gt; </em></small>";
  		}
  		else if (tag.getName() && !strcmp(tag.getName(), "scripture")) {