[sword-cvs] sword/src/modules/filters thmlmorph.cpp,1.10,1.11

sword@www.crosswire.org sword@www.crosswire.org
Fri, 20 Jun 2003 09:28:53 -0700


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

Modified Files:
	thmlmorph.cpp 
Log Message:
bug fix for stupid code of Joachim:)

Index: thmlmorph.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/modules/filters/thmlmorph.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** thmlmorph.cpp	12 Jun 2003 15:30:21 -0000	1.10
--- thmlmorph.cpp	20 Jun 2003 16:28:51 -0000	1.11
***************
*** 58,68 ****
  			if (*from == '>') {	// process tokens
  				intoken = false;
! 				if (!strnicmp(token.c_str(), "sync", 4) && strstr(token.c_str(), "type=\"morph\"")) {	// Morph
  				  continue;
  				}
  
  				// if not a morph tag token, keep token in text
! 				text += '<'; 
! 				token += token; 
  				text += '>';
  				continue;
--- 58,68 ----
  			if (*from == '>') {	// process tokens
  				intoken = false;
! 				if (!strncmp(token.c_str(), "sync ", 5) && strstr(token.c_str(), "type=\"morph\"")) {	// Morph
  				  continue;
  				}
  
  				// if not a morph tag token, keep token in text
! 				text += '<';
! 				text += token;
  				text += '>';
  				continue;