[sword-svn] r2038 - trunk/utilities
dmsmith at www.crosswire.org
dmsmith at www.crosswire.org
Tue Apr 24 12:03:47 MST 2007
Author: dmsmith
Date: 2007-04-24 12:03:47 -0700 (Tue, 24 Apr 2007)
New Revision: 2038
Modified:
trunk/utilities/osis2mod.cpp
Log:
fixed a bug in osis2mod's title handling
Modified: trunk/utilities/osis2mod.cpp
===================================================================
--- trunk/utilities/osis2mod.cpp 2007-04-24 18:05:15 UTC (rev 2037)
+++ trunk/utilities/osis2mod.cpp 2007-04-24 19:03:47 UTC (rev 2038)
@@ -232,7 +232,7 @@
// it belongs to its <div> or <chapter> and is treated as part of its heading
// Otherwise if it a title in a chapter before the first the first verse it
// is put into the verse as a preverse title.
- if (!isEndTag && titleDepth == 0 && (!strcmp(tokenName, "title")) && (!typeAttr || (strcmp(typeAttr, "main") && strcmp(typeAttr, "chapter")))) {
+ if (!token->isEmpty() && !isEndTag && titleDepth == 0 && (!strcmp(tokenName, "title")) && (!typeAttr || (strcmp(typeAttr, "main") && strcmp(typeAttr, "chapter")))) {
titleOffset = text.length(); //start of the title tag
lastTitle = "";
inTitle = true;
More information about the sword-cvs
mailing list