[sword-svn] r3431 - trunk/utilities

refdoc at crosswire.org refdoc at crosswire.org
Tue Aug 16 15:46:19 MST 2016


Author: refdoc
Date: 2016-08-16 15:46:19 -0700 (Tue, 16 Aug 2016)
New Revision: 3431

Modified:
   trunk/utilities/osis2mod.cpp
Log:
commented out as per previous flawed commit a set of line handling "div
type="majorSection" " - the assumptions the lines were based upon are wrong
- see comments in code. 



Modified: trunk/utilities/osis2mod.cpp
===================================================================
--- trunk/utilities/osis2mod.cpp	2016-08-16 22:39:06 UTC (rev 3430)
+++ trunk/utilities/osis2mod.cpp	2016-08-16 22:46:19 UTC (rev 3431)
@@ -886,7 +886,8 @@
 
 		// Now consider everything else.
 
-		// "majorSection" is code for the Book 1-5 of Psalms
+/*
+		// "majorSection" is code for the Book 1-5 of Psalms // This is incorrect assumption - majorSection can appear in any large book and can start and end inside chapters
 		if (tokenName == "div" && typeAttr == "majorSection") {
 			if (inBookIntro) {
 				if (debug & DEBUG_TITLE) {
@@ -901,6 +902,8 @@
 
 			strcpy(currentOsisID, currentVerse.getOSISRef());
 
+// as a result of the incorrect assumption these flags are set also incorrectly and cause problems in situations where majorSections do not follow the assumptions made during creation of this patch
+
 			inChapter       = false;
 			inVerse         = false;
 			inPreVerse      = false;
@@ -915,7 +918,7 @@
 
 			return false;
 		}
-
+*/
 		// Handle WOC quotes.
 		// Note this requires transformBSP to make them into milestones
 		// Otherwise have to do it here




More information about the sword-cvs mailing list