[sword-cvs] sword/utilities osis2mod.cpp,1.8,1.9
sword@www.crosswire.org
sword@www.crosswire.org
Sat, 24 Jan 2004 11:42:42 -0700
- Previous message: [sword-cvs] sword/src/modules/filters gbffootnotes.cpp,1.23,1.24 gbfhtmlhref.cpp,1.24,1.25 osisfootnotes.cpp,1.13,1.14 osisheadings.cpp,1.10,1.11 osishtmlhref.cpp,1.19,1.20 osislemma.cpp,1.4,1.5 osismorph.cpp,1.9,1.10 osisplain.cpp,1.13,1.14 osisredletterwords.cpp,1.6,1.7 osisrtf.cpp,1.27,1.28 osisscripref.cpp,1.5,1.6 osiswebif.cpp,1.7,1.8 thmlfootnotes.cpp,1.15,1.16 thmlheadings.cpp,1.13,1.14 thmlhtml.cpp,1.30,1.31 thmlhtmlhref.cpp,1.46,1.47 thmlrtf.cpp,1.42,1.43 thmlscripref.cpp,1.17,1.18 thmlwebif.cpp,1.10,1.11
- Next message: [sword-cvs] sword/utilities/diatheke osiscgi.cpp,1.3,1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvs/core/sword/utilities
In directory www:/tmp/cvs-serv31594/utilities
Modified Files:
osis2mod.cpp
Log Message:
Rolled back yesterdays changes
Index: osis2mod.cpp
===================================================================
RCS file: /cvs/core/sword/utilities/osis2mod.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- osis2mod.cpp 24 Jan 2004 03:11:50 -0000 1.8
+++ osis2mod.cpp 24 Jan 2004 18:42:40 -0000 1.9
@@ -107,16 +107,16 @@
static SWBuf lastTitle = "";
static int titleOffset = -1;
- if ((tag.getName()) && (!strcmp(token.getName(), "title")) && (!token.isEndTag())) {
+ if ((!strcmp(token.getName(), "title")) && (!token.isEndTag())) {
titleOffset = text.length();
return false;
}
- if ((tag.getName()) && (!strcmp(token.getName(), "title")) && (token.isEndTag())) {
+ if ((!strcmp(token.getName(), "title")) && (token.isEndTag())) {
lastTitle = (text.c_str() + titleOffset);
lastTitle += token;
return false;
}
- if (((tag.getName()) && (!strcmp(token.getName(), "div")) && (!token.isEndTag()) && (token.getAttribute("osisID"))) && (!strcmp(token.getAttribute("type"), "book"))) {
+ if (((!strcmp(token.getName(), "div")) && (!token.isEndTag()) && (token.getAttribute("osisID"))) && (!strcmp(token.getAttribute("type"), "book"))) {
if (inHeader) { // this one should never happen, but just in case
// cout << "HEADING ";
writeEntry(*currentVerse, text);
@@ -130,7 +130,7 @@
lastTitle = "";
text = "";
}
- else if ((((tag.getName()) && (!strcmp(token.getName(), "div")) && (!token.isEndTag()) && (token.getAttribute("osisID"))) && (!strcmp(token.getAttribute("type"), "chapter"))) || ((!strcmp(token.getName(), "chapter")) && (!token.isEndTag()) && (token.getAttribute("osisID")))) {
+ else if ((((!strcmp(token.getName(), "div")) && (!token.isEndTag()) && (token.getAttribute("osisID"))) && (!strcmp(token.getAttribute("type"), "chapter"))) || ((!strcmp(token.getName(), "chapter")) && (!token.isEndTag()) && (token.getAttribute("osisID")))) {
if (inHeader) {
// cout << "HEADING ";
writeEntry(*currentVerse, text);
@@ -144,7 +144,7 @@
lastTitle = "";
text = "";
}
- if ((tag.getName()) && (!strcmp(token.getName(), "verse")) && (!token.isEndTag())) {
+ if ((!strcmp(token.getName(), "verse")) && (!token.isEndTag())) {
if (inHeader) {
// cout << "HEADING ";
writeEntry(*currentVerse, text);
@@ -155,7 +155,7 @@
text = "";
return true;
}
- if ((tag.getName()) && (!strcmp(token.getName(), "verse")) && (token.isEndTag())) {
+ if ((!strcmp(token.getName(), "verse")) && (token.isEndTag())) {
if (lastTitle.length()) {
SWBuf titleHead = lastTitle;
char *end = strchr(lastTitle.getRawData(), '>');
- Previous message: [sword-cvs] sword/src/modules/filters gbffootnotes.cpp,1.23,1.24 gbfhtmlhref.cpp,1.24,1.25 osisfootnotes.cpp,1.13,1.14 osisheadings.cpp,1.10,1.11 osishtmlhref.cpp,1.19,1.20 osislemma.cpp,1.4,1.5 osismorph.cpp,1.9,1.10 osisplain.cpp,1.13,1.14 osisredletterwords.cpp,1.6,1.7 osisrtf.cpp,1.27,1.28 osisscripref.cpp,1.5,1.6 osiswebif.cpp,1.7,1.8 thmlfootnotes.cpp,1.15,1.16 thmlheadings.cpp,1.13,1.14 thmlhtml.cpp,1.30,1.31 thmlhtmlhref.cpp,1.46,1.47 thmlrtf.cpp,1.42,1.43 thmlscripref.cpp,1.17,1.18 thmlwebif.cpp,1.10,1.11
- Next message: [sword-cvs] sword/utilities/diatheke osiscgi.cpp,1.3,1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]