[sword-cvs] sword/src/modules/filters osisheadings.cpp,1.9,1.10 osiswebif.cpp,1.5,1.6

sword@www.crosswire.org sword@www.crosswire.org
Mon, 24 Nov 2003 02:16:42 -0700


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

Modified Files:
	osisheadings.cpp osiswebif.cpp 
Log Message:



Index: osisheadings.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/modules/filters/osisheadings.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- osisheadings.cpp	22 Nov 2003 07:42:00 -0000	1.9
+++ osisheadings.cpp	24 Nov 2003 09:16:40 -0000	1.10
@@ -61,7 +61,7 @@
 					header = "";
 					continue;
 				}
-				else {
+				if (!tag.isEndTag()) {
 					hide = true;
 					header = "";
 					if (option) {	// we want the tag in the text

Index: osiswebif.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/modules/filters/osiswebif.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- osiswebif.cpp	22 Nov 2003 05:27:39 -0000	1.5
+++ osiswebif.cpp	24 Nov 2003 09:16:40 -0000	1.6
@@ -139,6 +139,15 @@
 				u->suspendTextPassThru = false;
 			}
 		}
+		// <title>
+		else if (!strcmp(tag.getName(), "title")) {
+			if ((!tag.isEndTag()) && (!tag.isEmpty())) {
+				buf += "<h3>";
+			}
+			else if (tag.isEndTag()) {
+				buf += "</h3>";
+			}
+		}
 
 		// <q> quote
 		else if (!strcmp(tag.getName(), "q")) {