[sword-devel] patch for the patch

Terry Biggs sword-devel@crosswire.org
09 Jan 2003 15:40:04 -0500


--=-ZLH4SiTVS+exfNraPS5O
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Troy,

Here's a patch for the patch to gbfhtmlhref.cpp. I got it working with
gnomesword and needed the 'G' in the tag for Strongs. 

The new tags are going to be great.
-- 
Terry Biggs <tbiggs@users.sf.net>
http://gnomesword.sf.net

--=-ZLH4SiTVS+exfNraPS5O
Content-Disposition: attachment; filename=gbfhtmlhref.diff
Content-Type: text/plain; name=gbfhtmlhref.diff; charset=UTF-8
Content-Transfer-Encoding: 7bit

--- /home/terry/Projects/sword/src/modules/filters/gbfhtmlhref.cpp	2003-01-09 15:20:49.000000000 -0500
+++ /home/terry/Projects/sword/src/modules/filters/gbfhtmlhref.cpp-0	2003-01-09 13:04:42.000000000 -0500
@@ -90,7 +90,7 @@
 				*valto = 0;
 				if (atoi((!isdigit(*val))?val+1:val) < 5627) {
 					pushString(buf, " <small><em>&lt;<a href=\"type=Strongs value=");
-					for (tok = val; *tok; tok++)
+					for (tok = (!isdigit(*val))?val+1:val; *tok; tok++)
 							*(*buf)++ = *tok;
 					*(*buf)++ = '\"';
 					*(*buf)++ = '>';

--=-ZLH4SiTVS+exfNraPS5O--