[sword-cvs] sword/src/modules/filters osisstrongs.cpp,1.11,1.12
sword@www.crosswire.org
sword@www.crosswire.org
Thu, 19 Feb 2004 05:02:04 -0700
Update of /cvs/core/sword/src/modules/filters
In directory www:/tmp/cvs-serv14113/src/modules/filters
Modified Files:
osisstrongs.cpp
Log Message:
Fix to make the OSISStrongs filter work, it displayed the text of the previous tag instaead of the current one in the EntryAttributes; Morph filtering is still buggy with NASB --joachim
Index: osisstrongs.cpp
===================================================================
RCS file: /cvs/core/sword/src/modules/filters/osisstrongs.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- osisstrongs.cpp 19 Feb 2004 11:53:51 -0000 1.11
+++ osisstrongs.cpp 19 Feb 2004 12:02:02 -0000 1.12
@@ -90,7 +90,7 @@
startTagEnd++;
char* endTagStart = strstr(startTagEnd, "</w>"); //end of the opening tag
- if (endTagStart) {
+ if (endTagStart && endTagStart > startTagEnd) { //content in between
SWBuf tmp;
tmp.append(startTagEnd, endTagStart - startTagEnd);
module->getEntryAttributes()["Word"][wordstr]["Text"] = tmp;