[sword-cvs] sword/src/modules/filters osisredletterwords.cpp,1.2,1.3
sword@www.crosswire.org
sword@www.crosswire.org
Sat, 28 Jun 2003 12:04:34 -0700
Update of /usr/local/cvsroot/sword/src/modules/filters
In directory www:/tmp/cvs-serv11049/src/modules/filters
Modified Files:
osisredletterwords.cpp
Log Message:
small fix to remove extraneous '<' and '>'
Index: osisredletterwords.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/modules/filters/osisredletterwords.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** osisredletterwords.cpp 28 Jun 2003 15:03:48 -0000 1.2
--- osisredletterwords.cpp 28 Jun 2003 19:04:32 -0000 1.3
***************
*** 65,72 ****
if (!stricmp(tag.getName(), "q")) {
if ((tag.getAttribute("who")) && (!stricmp(tag.getAttribute("who"), "Jesus"))) {
! tag.setAttribute("who", 0);
! token = tag;
}
}
text += '<';
text.append(token);
--- 65,74 ----
if (!stricmp(tag.getName(), "q")) {
if ((tag.getAttribute("who")) && (!stricmp(tag.getAttribute("who"), "Jesus"))) {
! tag.setAttribute("who", 0);
! text += token; // token toString already has < and >
! continue;
}
}
+ // if we haven't modified, still use original token instead of tag, so we don't reorder attribs and stuff. It doesn't really matter, but this is less intrusive to the original markup.
text += '<';
text.append(token);