[sword-svn] r3017 - trunk/src/modules/filters

chrislit at crosswire.org chrislit at crosswire.org
Thu Jan 23 02:21:50 MST 2014


Author: chrislit
Date: 2014-01-23 02:21:50 -0700 (Thu, 23 Jan 2014)
New Revision: 3017

Modified:
   trunk/src/modules/filters/osishtmlhref.cpp
   trunk/src/modules/filters/osisxhtml.cpp
Log:
fix for (API-164)


Modified: trunk/src/modules/filters/osishtmlhref.cpp
===================================================================
--- trunk/src/modules/filters/osishtmlhref.cpp	2014-01-23 08:22:57 UTC (rev 3016)
+++ trunk/src/modules/filters/osishtmlhref.cpp	2014-01-23 09:21:50 UTC (rev 3017)
@@ -289,7 +289,7 @@
 		// Milestoned paragraphs, created by osis2mod
 		// <div type="paragraph" sID.../>
 		// <div type="paragraph" eID.../>
-		else if (tag.isEmpty() && !strcmp(tag.getName(), "div") && tag.getAttribute("type") && !strcmp(tag.getAttribute("type"), "paragraph")) {
+		else if (tag.isEmpty() && !strcmp(tag.getName(), "div") && tag.getAttribute("type") && (!strcmp(tag.getAttribute("type"), "x-p") || !strcmp(tag.getAttribute("type"), "paragraph"))) {
 			// <div type="paragraph"  sID... />
 			if (tag.getAttribute("sID")) {	// non-empty start tag
 				outText("<!P><br />", buf, u);

Modified: trunk/src/modules/filters/osisxhtml.cpp
===================================================================
--- trunk/src/modules/filters/osisxhtml.cpp	2014-01-23 08:22:57 UTC (rev 3016)
+++ trunk/src/modules/filters/osisxhtml.cpp	2014-01-23 09:21:50 UTC (rev 3017)
@@ -330,7 +330,7 @@
 		// Milestoned paragraphs, created by osis2mod
 		// <div type="paragraph" sID.../>
 		// <div type="paragraph" eID.../>
-		else if (tag.isEmpty() && !strcmp(tag.getName(), "div") && tag.getAttribute("type") && !strcmp(tag.getAttribute("type"), "paragraph")) {
+		else if (tag.isEmpty() && !strcmp(tag.getName(), "div") && tag.getAttribute("type") && (!strcmp(tag.getAttribute("type"), "x-p") || !strcmp(tag.getAttribute("type"), "paragraph"))) {
 			// <div type="paragraph"  sID... />
 			if (tag.getAttribute("sID")) {	// non-empty start tag
 				u->outputNewline(buf);




More information about the sword-cvs mailing list