[sword-cvs] sword/src/modules/filters osishtmlhref.cpp,1.25,1.26

sword at www.crosswire.org sword at www.crosswire.org
Thu Jul 22 15:49:26 MST 2004


Committed by: tbiggs

Update of /cvs/core/sword/src/modules/filters
In directory www:/tmp/cvs-serv12509

Modified Files:
	osishtmlhref.cpp 
Log Message:
undo the reference tag change

Index: osishtmlhref.cpp
===================================================================
RCS file: /cvs/core/sword/src/modules/filters/osishtmlhref.cpp,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- osishtmlhref.cpp	21 Jul 2004 20:11:31 -0000	1.25
+++ osishtmlhref.cpp	22 Jul 2004 22:49:23 -0000	1.26
@@ -173,8 +173,8 @@
 								ch);
 						}
 					}
-					u->suspendTextPassThru = true;
 				}
+				u->suspendTextPassThru = true;
 			}
 			if (tag.isEndTag()) {
 				u->suspendTextPassThru = false;
@@ -197,16 +197,12 @@
 		}
 
 		// <reference> tag
-		else if (!strcmp(tag.getName(), "reference")) {
-			if (!tag.isEmpty()) {
-				u->suspendTextPassThru = true;
+		else if (!strcmp(tag.getName(), "reference")) {			
+			if ((!tag.isEndTag()) && (!tag.isEmpty())) {
+				buf += "<a href=\"\">";
 			}
-			if (tag.isEndTag()) {
-				SWBuf refList = u->lastTextNode;
-				buf.appendFormatted("&nbsp<a href=\"passagestudy.jsp?action=showRef&type=reference&value=%s\">%s</a>&nbsp",
-					(refList.length()) ? URL::encode(refList.c_str()).c_str() : "",
-					(u->lastTextNode.length()) ? u->lastTextNode.c_str() : "");
-				u->suspendTextPassThru = false;
+			else if (tag.isEndTag()) {
+				buf += "</a>";
 			}
 		}
 



More information about the sword-cvs mailing list