[sword-cvs] sword/src/modules/filters thmlscripref.cpp,1.6,1.7

sword@www.crosswire.org sword@www.crosswire.org
Fri, 21 Feb 2003 13:54:31 -0700


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

Modified Files:
	thmlscripref.cpp 
Log Message:
fixed thmlscripref filter

Index: thmlscripref.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/modules/filters/thmlscripref.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** thmlscripref.cpp	21 Feb 2003 20:51:31 -0000	1.6
--- thmlscripref.cpp	21 Feb 2003 20:54:29 -0000	1.7
***************
*** 42,46 ****
  }
  
! char ThMLScripref::ProcessText(char *text, int maxlen, const SWKey *key, const SWModule *module)
  {
  	if (!option) {	// if we don't want scriprefs
--- 42,46 ----
  }
  
! char ThMLScripref::processText(SWBuf &text, const SWKey *key, const SWModule *module)
  {
  	if (!option) {	// if we don't want scriprefs
***************
*** 50,54 ****
  		SWBuf token;
  		SWBuf orig = text;
!  	 	const char *from = orig.c_str();
  		for (text = ""; *from; from++) {
  			if (*from == '<') { //new token was found
--- 50,54 ----
  		SWBuf token;
  		SWBuf orig = text;
! 		const char *from = orig.c_str();
  		for (text = ""; *from; from++) {
  			if (*from == '<') { //new token was found
***************
*** 83,88 ****
  			}
  		}
- 		*to++ = 0;
- 		*to = 0;
  	}
  	return 0;
--- 83,86 ----