[sword-cvs] sword/utilities/diatheke osiscgi.cpp,1.2,1.3
sword@www.crosswire.org
sword@www.crosswire.org
Fri, 23 Jan 2004 20:11:52 -0700
- Previous message: [sword-cvs] sword/utilities osis2mod.cpp,1.7,1.8
- Next 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
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvs/core/sword/utilities/diatheke
In directory www:/tmp/cvs-serv21720/utilities/diatheke
Modified Files:
osiscgi.cpp
Log Message:
no message
Index: osiscgi.cpp
===================================================================
RCS file: /cvs/core/sword/utilities/diatheke/osiscgi.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- osiscgi.cpp 16 Jan 2004 03:42:42 -0000 1.2
+++ osiscgi.cpp 24 Jan 2004 03:11:50 -0000 1.3
@@ -56,7 +56,7 @@
XMLTag tag(token);
// <w> tag
- if (!strcmp(tag.getName(), "w")) {
+ if ((tag.getName()) && !strcmp(tag.getName(), "w")) {
// start <w> tag
if ((!tag.isEmpty()) && (!tag.isEndTag())) {
@@ -149,7 +149,7 @@
}
// <note> tag
- else if (!strcmp(tag.getName(), "note")) {
+ else if ((tag.getName()) && !strcmp(tag.getName(), "note")) {
if (!tag.isEndTag()) {
if (!tag.isEmpty()) {
SWBuf type = tag.getAttribute("type");
@@ -176,7 +176,7 @@
}
// <p> paragraph tag
- else if (!strcmp(tag.getName(), "p")) {
+ else if ((tag.getName()) && !strcmp(tag.getName(), "p")) {
if ((!tag.isEndTag()) && (!tag.isEmpty())) { // non-empty start tag
buf += "<p><br />";
}
@@ -191,7 +191,7 @@
}
// <reference> tag
- else if (!strcmp(tag.getName(), "reference")) {
+ else if ((tag.getName()) && !strcmp(tag.getName(), "reference")) {
const char *attrib;
const char *val;
@@ -210,7 +210,7 @@
}
// <l> poetry, etc
- else if (!strcmp(tag.getName(), "l")) {
+ else if ((tag.getName()) && !strcmp(tag.getName(), "l")) {
if (tag.isEmpty()) {
buf += "<br />";
}
@@ -223,13 +223,13 @@
}
// <milestone type="line"/>
- else if ((!strcmp(tag.getName(), "milestone")) && (tag.getAttribute("type")) && (!strcmp(tag.getAttribute("type"), "line"))) {
+ else if ((tag.getName()) && (!strcmp(tag.getName(), "milestone")) && (tag.getAttribute("type")) && (!strcmp(tag.getAttribute("type"), "line"))) {
buf += "<br />";
userData->supressAdjacentWhitespace = true;
}
// <title>
- else if (!strcmp(tag.getName(), "title")) {
+ else if ((tag.getName()) && !strcmp(tag.getName(), "title")) {
if ((!tag.isEndTag()) && (!tag.isEmpty())) {
buf += "<b>";
}
@@ -239,7 +239,7 @@
}
// <hi> hi? hi contrast?
- else if (!strcmp(tag.getName(), "hi")) {
+ else if ((tag.getName()) && !strcmp(tag.getName(), "hi")) {
SWBuf type = tag.getAttribute("type");
if ((!tag.isEndTag()) && (!tag.isEmpty())) {
if (type == "bold" || type == "x-b") {
@@ -265,7 +265,7 @@
}
// <q> quote
- else if (!strcmp(tag.getName(), "q")) {
+ else if ((tag.getName()) && !strcmp(tag.getName(), "q")) {
SWBuf type = tag.getAttribute("type");
SWBuf who = tag.getAttribute("who");
const char *lev = tag.getAttribute("level");
@@ -296,7 +296,7 @@
}
// <transChange>
- else if (!strcmp(tag.getName(), "transChange")) {
+ else if ((tag.getName()) && !strcmp(tag.getName(), "transChange")) {
SWBuf type = tag.getAttribute("type");
if ((!tag.isEndTag()) && (!tag.isEmpty())) {
- Previous message: [sword-cvs] sword/utilities osis2mod.cpp,1.7,1.8
- Next 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
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]