[sword-cvs] sword/src/modules/filters thmlhtmlhref.cpp,1.30,1.31
sword@www.crosswire.org
sword@www.crosswire.org
Thu, 19 Jun 2003 15:03:19 -0700
Update of /usr/local/cvsroot/sword/src/modules/filters
In directory www:/tmp/cvs-serv7462/src/modules/filters
Modified Files:
thmlhtmlhref.cpp
Log Message:
fixes
Index: thmlhtmlhref.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/modules/filters/thmlhtmlhref.cpp,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** thmlhtmlhref.cpp 12 Jun 2003 02:03:34 -0000 1.30
--- thmlhtmlhref.cpp 19 Jun 2003 22:03:17 -0000 1.31
***************
*** 141,145 ****
if (!substituteToken(buf, token)) { // manually process if it wasn't a simple substitution
XMLTag tag(token);
! if (!strcmp(tag.getName(), "sync")) {
if( tag.getAttribute("type") && !strcmp(tag.getAttribute("type"), "morph")) {
buf += "<small><em> (<a href=\"";
--- 141,145 ----
if (!substituteToken(buf, token)) { // manually process if it wasn't a simple substitution
XMLTag tag(token);
! if (tag.getName() && !strcmp(tag.getName(), "sync")) {
if( tag.getAttribute("type") && !strcmp(tag.getAttribute("type"), "morph")) {
buf += "<small><em> (<a href=\"";
***************
*** 161,176 ****
value++;
}
! buf += value;
! if(tag.getAttribute("type") && strcmp(tag.getAttribute("type"), "morph"))
buf += "</a>> </em></small>";
else
buf += "</a>) </em></small>";
}
! else if (!strcmp(tag.getName(), "scripture")) {
userData["inscriptRef"] = "true";
buf += "<i>";
}
! else if (!strcmp(tag.getName(), "scripRef")) {
if (tag.isEndTag()) {
if (userData["inscriptRef"] == "true") { // like "<scripRef passage="John 3:16">John 3:16</scripRef>"
--- 161,176 ----
value++;
}
! buf += value ? value : "";
! if(tag.getAttribute("type") && !strcmp(tag.getAttribute("type"), "morph"))
buf += "</a>> </em></small>";
else
buf += "</a>) </em></small>";
}
! else if (tag.getName() && !strcmp(tag.getName(), "scripture")) {
userData["inscriptRef"] = "true";
buf += "<i>";
}
! else if (tag.getName() && !strcmp(tag.getName(), "scripRef")) {
if (tag.isEndTag()) {
if (userData["inscriptRef"] == "true") { // like "<scripRef passage="John 3:16">John 3:16</scripRef>"