[sword-cvs] sword/utilities/diatheke osiscgi.cpp,1.3,1.4
sword@www.crosswire.org
sword@www.crosswire.org
Sat, 24 Jan 2004 11:42:42 -0700
- Previous message: [sword-cvs] sword/utilities osis2mod.cpp,1.8,1.9
- Next message: [sword-cvs] sword/src/modules/filters gbffootnotes.cpp,1.24,1.25 gbfhtmlhref.cpp,1.25,1.26 osisfootnotes.cpp,1.14,1.15 osisheadings.cpp,1.11,1.12 osishtmlhref.cpp,1.20,1.21 osislemma.cpp,1.5,1.6 osismorph.cpp,1.10,1.11 osisplain.cpp,1.14,1.15 osisredletterwords.cpp,1.7,1.8 osisrtf.cpp,1.28,1.29 osisscripref.cpp,1.6,1.7 osiswebif.cpp,1.8,1.9 thmlfootnotes.cpp,1.16,1.17 thmlheadings.cpp,1.14,1.15 thmlhtml.cpp,1.31,1.32 thmlhtmlhref.cpp,1.47,1.48 thmlrtf.cpp,1.43,1.44 thmlscripref.cpp,1.18,1.19 thmlwebif.cpp,1.11,1.12
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvs/core/sword/utilities/diatheke
In directory www:/tmp/cvs-serv31594/utilities/diatheke
Modified Files:
osiscgi.cpp
Log Message:
Rolled back yesterdays changes
Index: osiscgi.cpp
===================================================================
RCS file: /cvs/core/sword/utilities/diatheke/osiscgi.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- osiscgi.cpp 24 Jan 2004 03:11:50 -0000 1.3
+++ osiscgi.cpp 24 Jan 2004 18:42:40 -0000 1.4
@@ -56,7 +56,7 @@
XMLTag tag(token);
// <w> tag
- if ((tag.getName()) && !strcmp(tag.getName(), "w")) {
+ if (!strcmp(tag.getName(), "w")) {
// start <w> tag
if ((!tag.isEmpty()) && (!tag.isEndTag())) {
@@ -149,7 +149,7 @@
}
// <note> tag
- else if ((tag.getName()) && !strcmp(tag.getName(), "note")) {
+ else if (!strcmp(tag.getName(), "note")) {
if (!tag.isEndTag()) {
if (!tag.isEmpty()) {
SWBuf type = tag.getAttribute("type");
@@ -176,7 +176,7 @@
}
// <p> paragraph tag
- else if ((tag.getName()) && !strcmp(tag.getName(), "p")) {
+ else if (!strcmp(tag.getName(), "p")) {
if ((!tag.isEndTag()) && (!tag.isEmpty())) { // non-empty start tag
buf += "<p><br />";
}
@@ -191,7 +191,7 @@
}
// <reference> tag
- else if ((tag.getName()) && !strcmp(tag.getName(), "reference")) {
+ else if (!strcmp(tag.getName(), "reference")) {
const char *attrib;
const char *val;
@@ -210,7 +210,7 @@
}
// <l> poetry, etc
- else if ((tag.getName()) && !strcmp(tag.getName(), "l")) {
+ else if (!strcmp(tag.getName(), "l")) {
if (tag.isEmpty()) {
buf += "<br />";
}
@@ -223,13 +223,13 @@
}
// <milestone type="line"/>
- else if ((tag.getName()) && (!strcmp(tag.getName(), "milestone")) && (tag.getAttribute("type")) && (!strcmp(tag.getAttribute("type"), "line"))) {
+ else if ((!strcmp(tag.getName(), "milestone")) && (tag.getAttribute("type")) && (!strcmp(tag.getAttribute("type"), "line"))) {
buf += "<br />";
userData->supressAdjacentWhitespace = true;
}
// <title>
- else if ((tag.getName()) && !strcmp(tag.getName(), "title")) {
+ else if (!strcmp(tag.getName(), "title")) {
if ((!tag.isEndTag()) && (!tag.isEmpty())) {
buf += "<b>";
}
@@ -239,7 +239,7 @@
}
// <hi> hi? hi contrast?
- else if ((tag.getName()) && !strcmp(tag.getName(), "hi")) {
+ else if (!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 ((tag.getName()) && !strcmp(tag.getName(), "q")) {
+ else if (!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 ((tag.getName()) && !strcmp(tag.getName(), "transChange")) {
+ else if (!strcmp(tag.getName(), "transChange")) {
SWBuf type = tag.getAttribute("type");
if ((!tag.isEndTag()) && (!tag.isEmpty())) {
- Previous message: [sword-cvs] sword/utilities osis2mod.cpp,1.8,1.9
- Next message: [sword-cvs] sword/src/modules/filters gbffootnotes.cpp,1.24,1.25 gbfhtmlhref.cpp,1.25,1.26 osisfootnotes.cpp,1.14,1.15 osisheadings.cpp,1.11,1.12 osishtmlhref.cpp,1.20,1.21 osislemma.cpp,1.5,1.6 osismorph.cpp,1.10,1.11 osisplain.cpp,1.14,1.15 osisredletterwords.cpp,1.7,1.8 osisrtf.cpp,1.28,1.29 osisscripref.cpp,1.6,1.7 osiswebif.cpp,1.8,1.9 thmlfootnotes.cpp,1.16,1.17 thmlheadings.cpp,1.14,1.15 thmlhtml.cpp,1.31,1.32 thmlhtmlhref.cpp,1.47,1.48 thmlrtf.cpp,1.43,1.44 thmlscripref.cpp,1.18,1.19 thmlwebif.cpp,1.11,1.12
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]