[sword-svn] r2063 - trunk/utilities

dmsmith at www.crosswire.org dmsmith at www.crosswire.org
Fri Jul 20 18:49:21 MST 2007


Author: dmsmith
Date: 2007-07-20 18:49:20 -0700 (Fri, 20 Jul 2007)
New Revision: 2063

Modified:
   trunk/utilities/osis2mod.cpp
Log:
improved debugging

Modified: trunk/utilities/osis2mod.cpp
===================================================================
--- trunk/utilities/osis2mod.cpp	2007-07-19 17:27:31 UTC (rev 2062)
+++ trunk/utilities/osis2mod.cpp	2007-07-21 01:49:20 UTC (rev 2063)
@@ -428,17 +428,24 @@
 					) {
 #ifdef DEBUG
 					if (token) {
-						cout << currentOsisID << ": start token " << *token << ":" << text.c_str() << endl;
+						cout << currentOsisID << ": appending interverse start token " << *token << ":" << text.c_str() << endl;
 					}
 #endif
 				SWBuf tmp = token->toString();
 				writeEntry(*currentVerse, tmp);
 				return true;
 			}
+#ifdef DEBUG
+			else {
+				if (token) {
+					cout << currentOsisID << ": interverse start token " << *token << ":" << text.c_str() << endl;
+				}
+			}
+#endif
 		}
 	}
 
-//-- END TAG ---------------------------------------------------------------------------------------------
+//-- EMPTY and END TAG ---------------------------------------------------------------------------------------------
 
 	else {
 
@@ -568,10 +575,13 @@
 				text.append(*token);
 				writeEntry(*currentVerse, text);
 				text = "";
+#ifdef DEBUG
+				cout << currentOsisID << ": appending interverse end tag: " << tokenName << "(" << tagDepth << "," << chapterDepth << "," << bookDepth << ")" << endl;
+#endif
 				return true;
 			}
 #ifdef DEBUG
-			cout << currentOsisID << ": End tag not in verse: " << tokenName << "(" << tagDepth << "," << chapterDepth << "," << bookDepth << ")" << endl;
+			cout << currentOsisID << ": interverse end tag: " << tokenName << "(" << tagDepth << "," << chapterDepth << "," << bookDepth << ")" << endl;
 #endif
 		}
 	}




More information about the sword-cvs mailing list